mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #25093: Merge with 3.4
This commit is contained in:
commit
fa10f61ee5
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
import unittest
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
from test import support
|
||||
|
@ -242,11 +243,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue