Commit 83fd0a81 authored by Zachary Ware's avatar Zachary Ware

Issue #25093: Fix test_tcl's testloadWithUNC for paths with spaces

Patch by Serhiy Storchaka.
parent b3951880
import unittest
import re
import subprocess
import sys
import os
from test import support
......@@ -246,11 +247,10 @@ class TclTest(unittest.TestCase):
with support.EnvironmentVarGuard() as env:
env.unset("TCL_LIBRARY")
f = os.popen('%s -c "import tkinter; print(tkinter)"' % (unc_name,))
stdout = subprocess.check_output(
[unc_name, '-c', 'import tkinter; print(tkinter)'])
self.assertIn('tkinter', f.read())
# exit code must be zero
self.assertEqual(f.close(), None)
self.assertIn(b'tkinter', stdout)
def test_exprstring(self):
tcl = self.interp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment