Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82c2599

Browse files
eli-schwartzambv
andauthored
tests: drop dependency on external mock module for newer python (#574)
Fixes#541Co-authored-by: Łukasz Langa <lukasz@langa.pl>
1 parent4a87368 commit82c2599

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎html5lib/tests/test_meta.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from __future__importabsolute_import,division,unicode_literals
22

33
importsix
4-
frommockimportMock
4+
try:
5+
fromunittest.mockimportMock
6+
exceptImportError:
7+
frommockimportMock
58

69
from .importsupport
710

‎requirements-test.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ pytest>=4.6.10,<5 ; python_version < '3'
66
pytest>=5.4.2,<8 ; python_version >= '3'
77
coverage>=5.1,<6
88
pytest-expect>=1.1.0,<2
9-
mock>=3.0.5,<4 ; python_version < '3.6'
10-
mock>=4.0.2,<5 ; python_version >= '3.6'
9+
mock>=3.0.5,<4 ; python_version < '3.3'
1110
setuptools; python_version >= '3.12'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp