Skip to content

Commit

Permalink
Merge pull request #103 from eli-schwartz/unittest-mock
Browse files Browse the repository at this point in the history
tests: remove dependency on mock for python3
  • Loading branch information
takluyver committed Mar 11, 2021
2 parents 485d3a7 + 656ac1d commit df0f3cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pytest
pytest-flake8
mock
mock ; python_version<'3.6'
testpath
toml
setuptools>=30
Expand Down
5 changes: 4 additions & 1 deletion tests/test_call_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
import zipfile
import sys

from mock import Mock
try:
from mock import Mock # Prefer the backport below python 3.6
except ImportError:
from unittest.mock import Mock

from pep517.wrappers import Pep517HookCaller, default_subprocess_runner
from pep517.wrappers import UnsupportedOperation, BackendUnavailable
Expand Down

0 comments on commit df0f3cc

Please sign in to comment.