Skip to content

Commit c23b7da

Browse files
committed
Fix windows test regression.
Fixes #239 It looks like 2a08a19 removed the lowercasing of the username, and in this test the username is compared to the explicitly lowercased username, leading to a test failure.
1 parent 8473b8a commit c23b7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_core/tests/test_paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def fetch_win32_permissions(filename):
328328

329329
def check_user_only_permissions(fname):
330330
# Windows has it's own permissions ACL patterns
331-
username = os.environ["USERNAME"]
331+
username = os.environ["USERNAME"].lower()
332332
permissions = fetch_win32_permissions(fname)
333333
print(permissions) # for easier debugging
334334
assert username in permissions

0 commit comments

Comments
 (0)