Skip to content

Commit

Permalink
tests: drop dependency on external mock module for newer python (#574)
Browse files Browse the repository at this point in the history
Fixes #541

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
  • Loading branch information
eli-schwartz and ambv committed Jan 10, 2024
1 parent 4a87368 commit 82c2599
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion html5lib/tests/test_meta.py
@@ -1,7 +1,10 @@
from __future__ import absolute_import, division, unicode_literals

import six
from mock import Mock
try:
from unittest.mock import Mock
except ImportError:
from mock import Mock

from . import support

Expand Down
3 changes: 1 addition & 2 deletions requirements-test.txt
Expand Up @@ -6,6 +6,5 @@ pytest>=4.6.10,<5 ; python_version < '3'
pytest>=5.4.2,<8 ; python_version >= '3'
coverage>=5.1,<6
pytest-expect>=1.1.0,<2
mock>=3.0.5,<4 ; python_version < '3.6'
mock>=4.0.2,<5 ; python_version >= '3.6'
mock>=3.0.5,<4 ; python_version < '3.3'
setuptools; python_version >= '3.12'

0 comments on commit 82c2599

Please sign in to comment.