Skip to content

Commit 0bb34c9

Browse files
committed
Path constructed wrongly when 'extra_dir' is an empty string
1 parent dc6d773 commit 0bb34c9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/server/api/test_file_io_instrument.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,8 @@ def test_suggest_path(
7979
if touch
8080
else not (visit_dir / dir_name).exists()
8181
)
82-
assert (
83-
(visit_dir / dir_name / extra_dir).exists()
84-
if touch and extra_dir
85-
else not (visit_dir / dir_name / extra_dir).exists()
86-
)
82+
if touch and extra_dir:
83+
assert (visit_dir / dir_name / extra_dir).exists()
8784

8885

8986
def test_make_rsyncer_destination():

0 commit comments

Comments
 (0)