Skip to content

Commit eadc0cd

Browse files
committed
Avoid hardcoded public temporary path in tests
1 parent f96f039 commit eadc0cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ def test_add_payload_rejects_unsafe_destination(self):
11591159
unsafe_destinations = [
11601160
"../extra.txt",
11611161
"subdir/../../extra.txt",
1162-
"/tmp/extra.txt",
1162+
os.path.abspath(os.path.join(self.tmpdir, "..", "extra.txt")),
11631163
"~/.ssh/id_rsa",
11641164
]
11651165

0 commit comments

Comments
 (0)