Skip to content

Commit

Permalink
Merge pull request #158 from hugovk/demock
Browse files Browse the repository at this point in the history
Use stdlib mock instead of backport package for Python 3.8+
  • Loading branch information
mgedmin committed May 30, 2022
2 parents 4b94262 + 6d9533c commit 4006d67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -64,7 +64,7 @@
],
extras_require={
'test': [
'mock >= 3.0.0',
'mock >= 3.0.0; python_version == "3.7"',
'pytest',
],
},
Expand Down
8 changes: 7 additions & 1 deletion tests.py
Expand Up @@ -16,7 +16,13 @@
from typing import Optional
from xml.etree import ElementTree as ET

import mock

if sys.version_info >= (3, 8):
from unittest import mock
else:
# unittest.mock in 3.7 is too old to support
# all the features used in the test suite
import mock

from check_manifest import rmtree

Expand Down

0 comments on commit 4006d67

Please sign in to comment.