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

Commit9850138

Browse files
committed
Fix deprecation warning
1 parent4e442c0 commit9850138

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎conftest.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
importre
33
importtime
44
importtyping
5+
frompathlibimportPath
56

67
importpytest
78
frommypyimportapi
@@ -21,7 +22,7 @@ def fake_print(*args, **kwargs):
2122
defpytest_collect_file(parent,path):
2223
"""Collect all file suitable for use in tests"""
2324
ifpath.basename=="README.md":
24-
returnReadmeFile.from_parent(parent,fspath=path)
25+
returnReadmeFile.from_parent(parent,path=Path(path))
2526

2627

2728
classReadmeFile(pytest.File):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp