Skip to content

Commit d3f30fb

Browse files
committed
wip windows ci fix nuke mode
1 parent b479499 commit d3f30fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

glom/test/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
import sys
3+
4+
# Fix for pytest tmp_path on Windows + Python 3.14 where pwd module doesn't exist
5+
# and USERNAME env var may not be set in CI environments
6+
if sys.platform == 'win32' and not any(os.environ.get(n) for n in ('LOGNAME', 'USER', 'LNAME', 'USERNAME')):
7+
os.environ['USERNAME'] = 'user'

0 commit comments

Comments
 (0)