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

Commit9c44367

Browse files
stanislavlevingsnedders
authored andcommitted
Fix Pytest4.x compatibility error
According to pytest docs:```marks in pytest.mark.parametrizeRemoved in version 4.0.Applying marks to values of a pytest.mark.parametrize call is now deprecated....This was considered hard to read and understand, and also its implementationpresented problems to the code preventing further internal improvements in themarks architecture.To update the code, use pytest.param```Signed-off-by: Stanislav Levin <slev@altlinux.org>
1 parent986560a commit9c44367

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎html5lib/tests/test_stream.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,11 @@ def test_invalid_codepoints(inp, num):
308308
("'\\uD800\\uD800\\uD800'",3),
309309
("'a\\uD800a\\uD800a\\uD800a'",3),
310310
("'\\uDFFF\\uDBFF'",2),
311-
pytest.mark.skipif(sys.maxunicode==0xFFFF,
312-
("'\\uDBFF\\uDFFF'",2),
313-
reason="narrow Python")])
311+
pytest.param(
312+
"'\\uDBFF\\uDFFF'",2,
313+
marks=pytest.mark.skipif(
314+
sys.maxunicode==0xFFFF,
315+
reason="narrow Python"))])
314316
deftest_invalid_codepoints_surrogates(inp,num):
315317
inp=eval(inp)# pylint:disable=eval-used
316318
fp=StringIO(inp)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp