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

Commit5ec6e5e

Browse files
committed
tests: drop dependency on external mock module for newer python
Starting python 3.3, this is in the stdlib.Fixes#541
1 parent3e500bb commit5ec6e5e

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+
except:
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,5 +6,4 @@ pytest>=4.6.10,<5 ; python_version < '3'
66
pytest>=5.4.2,<7 ; 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'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp