Commits

Lenard Lindstrom committed aa9b24c

Allow Python 2.6 on Windows to run unit tests in subprocesses

Comments (0)

Files changed (1)

 else:
     working_dir = main_dir
 
-test_env = {"PYTHONPATH": test_subdir}     #TODO:  append to PYTHONPATH
+test_env = {"PYTHONPATH": test_subdir}     #TODO:  append to PYTHONPATH
+try:
+    # Required by Python 2.6 on Windows.
+    test_env["SystemRoot"] = os.environ["SystemRoot"]
+except KeyError:
+    pass
 os.chdir(working_dir)
 
 if args: