Skip to content

Commit

Permalink
Mock(spec) --> Mock(autospec)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Apr 17, 2024
1 parent 5763917 commit ab9f766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools_py2cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def parseargs(cli_args=None):
def execsetup(setup_py: Path):
# Mock all function in the setuptools module.
global setuptools
sys.modules['setuptools'] = Mock(spec=setuptools)
sys.modules['setuptools'] = Mock(autospec=setuptools)
import setuptools

cwd = Path.cwd()
Expand Down

0 comments on commit ab9f766

Please sign in to comment.