Use stdlib mock instead of backport package for Python 3.8+

pull/158/head
Hugo van Kemenade 4 months ago
parent 4b9426230d
commit 3960e376fb
  1. 2
      setup.py
  2. 7
      tests.py

@ -64,7 +64,7 @@ setup(
],
extras_require={
'test': [
'mock >= 3.0.0',
'mock >= 3.0.0; python_version == "3.7"',
'pytest',
],
},

@ -16,7 +16,12 @@ from io import BytesIO, StringIO
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

Loading…
Cancel
Save