Skip to content

Commit 5c7e50f

Browse files
committed
Avoid Sonar S5443 false positive in shell_open test
The Windows-drive test literal C:\tmp\a.txt tripped Sonar's publicly-writable-directory rule on the 'tmp' substring (a false positive - a test string, no runtime temp dir). Use C:\Users\me\... , testing the same drive-is-not-a-scheme behaviour.
1 parent 58b6b1f commit 5c7e50f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit_test/headless/test_shell_open_batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_plan_file_path_is_realpathed():
2727

2828

2929
def test_windows_drive_is_a_file_not_a_scheme():
30-
assert plan_open(r"C:\tmp\a.txt")["kind"] == "file"
30+
assert plan_open(r"C:\Users\me\report.txt")["kind"] == "file"
3131

3232

3333
def test_verb_is_carried():

0 commit comments

Comments
 (0)