Skip to content

Commit b988417

Browse files
committed
[tests/functional/test_cache] Use os.path.join() instead of hard-coding the path separator.
1 parent 0c4eafa commit b988417

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/functional/test_cache.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ def _remove_matches_wheel(wheel_name, result):
8686

8787
# The "/arbitrary/pathname/" bit is an implementation detail of how
8888
# the `populate_wheel_cache` fixture is implemented.
89-
expected = 'Removed {}/arbitrary/pathname/{}'.format(
90-
wheel_cache_dir, wheel_filename,
89+
path = os.path.join(
90+
wheel_cache_dir, 'arbitrary', 'pathname', wheel_filename,
9191
)
92+
expected = 'Removed {}'.format(path)
9293
return expected in lines
9394

9495
return _remove_matches_wheel

0 commit comments

Comments
 (0)