diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -149,7 +149,14 @@ env.unset("TCL_LIBRARY") cmd = '%s -c "import Tkinter; print Tkinter"' % (unc_name,) - p = Popen(cmd, stdout=PIPE, stderr=PIPE) + try: + p = Popen(cmd, stdout=PIPE, stderr=PIPE) + except WindowsError as e: + if e.winerror == 5: + self.skipTest('Not permitted to start the child process') + else: + raise + out_data, err_data = p.communicate() msg = '\n\n'.join(['"Tkinter.py" not in output',