summaryrefslogtreecommitdiffstats
path: root/test/LEX/LEX.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/LEX/LEX.py')
-rw-r--r--test/LEX/LEX.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/LEX/LEX.py b/test/LEX/LEX.py
index 1239c6b..65e4497 100644
--- a/test/LEX/LEX.py
+++ b/test/LEX/LEX.py
@@ -38,7 +38,11 @@ test = TestSCons.TestSCons()
test.write('mylex.py', """
import getopt
import sys
-cmd_opts, args = getopt.getopt(sys.argv[1:], 't', [])
+if sys.platform == 'win32':
+ longopts = ['nounistd']
+else:
+ longopts = []
+cmd_opts, args = getopt.getopt(sys.argv[1:], 't', longopts)
for a in args:
contents = open(a, 'rb').read()
sys.stdout.write(contents.replace(b'LEX', b'mylex.py').decode())