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

Commit5a56b6b

Browse files
committed
chore(test): use pathlib for paths
1 parentad4b87c commit5a56b6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tools/functional/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
importos
21
importtempfile
2+
frompathlibimportPath
33
fromrandomimportrandint
44

55
importpytest
@@ -22,7 +22,7 @@ def random_id():
2222

2323
@pytest.fixture(scope="session")
2424
defCONFIG():
25-
returnos.path.join(TEMP_DIR,"python-gitlab.cfg")
25+
returnPath(TEMP_DIR)/"python-gitlab.cfg"
2626

2727

2828
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp