Skip to content

Commit 9cd01e2

Browse files
committed
Fix Windows detection
The previous logic included "darwin" (i.e., macOS) and "cigwin", so it wasn't really good at spotting what we wanted to. Signed-off-by: Rodrigo Tobar <[email protected]>
1 parent 6a6586d commit 9cd01e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def _do_test_dump(self, method, multiple_values):
1414
env['IJSON_BACKEND'] = 'python'
1515
# Ensure printing works on the subprocess in Windows
1616
# by using utf-8 on its stdout
17-
if 'win' in sys.platform:
17+
if sys.platform == 'win32':
1818
env = dict(os.environ)
1919
env['PYTHONIOENCODING'] = 'utf-8'
2020
cmd = [sys.executable, '-m', 'ijson.dump', '-m', method, '-p', '']

0 commit comments

Comments
 (0)