Skip to content

Commit

Permalink
__create__ isn't used in pkglib.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Mar 28, 2014
1 parent f418ad3 commit f890f38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkglib/tests/unit/setuptools/command/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,7 @@ def run_setuptools(f, cmd, dist=None, dist_attrs=None, args=None,
for name, mock_alternative in mocks.items():
if name.startswith("____"):
continue
should_create = getattr(mock_alternative, "__create__", False)
stack.enter_context(patch(name, create=should_create, new=mock_alternative))
stack.enter_context(patch(name, mock_alternative))

try:
f(**attrs)
Expand Down

0 comments on commit f890f38

Please sign in to comment.