diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-03 22:37:28 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-03 22:49:21 +0200 |
commit | cc975700cc4ed8fc7bc5016ca47581c03b8b95e4 (patch) | |
tree | bc90b1351c98ce20329e9392f05fe787c2f5279e | |
parent | 84c2489841a19496cd805be9ea0bb15592cdd04c (diff) | |
download | pylint-git-cc975700cc4ed8fc7bc5016ca47581c03b8b95e4.tar.gz |
Fix paths under windows with better path creation
-rw-r--r-- | tests/lint/unittest_expand_modules.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lint/unittest_expand_modules.py b/tests/lint/unittest_expand_modules.py index 670ed1ed4..a1dd75c8f 100644 --- a/tests/lint/unittest_expand_modules.py +++ b/tests/lint/unittest_expand_modules.py @@ -22,9 +22,9 @@ def test__basename_in_ignore_list_re_nomatch(): assert not _basename_in_ignore_list_re("enchilad.py", patterns) -TEST_DIRECTORY = str(Path(__file__).parent.parent) -INIT_PATH = "%s/lint/__init__.py" % TEST_DIRECTORY -EXPAND_MODULES = "%s/lint/unittest_expand_modules.py" % TEST_DIRECTORY +TEST_DIRECTORY = Path(__file__).parent.parent +INIT_PATH = str(TEST_DIRECTORY / "lint/__init__.py") +EXPAND_MODULES = str(TEST_DIRECTORY / "lint/unittest_expand_modules.py") this_file = { "basename": "lint.unittest_expand_modules", "basepath": EXPAND_MODULES, @@ -46,7 +46,7 @@ unittest_lint = { "basepath": INIT_PATH, "isarg": False, "name": "lint.unittest_lint", - "path": "%s/lint/unittest_lint.py" % TEST_DIRECTORY, + "path": str(TEST_DIRECTORY / "lint/unittest_lint.py"), } |