Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dbf49 commit f085a16Copy full SHA for f085a16
1 file changed
Lib/test/test_idle.py
@@ -1,11 +1,13 @@
1
import unittest
2
-from test import support
3
-from test.support import import_module
+from test.support import import_module, import_fresh_module
4
5
# Skip test if _thread or _tkinter wasn't built or idlelib was deleted.
6
import_module('threading') # imported by PyShell, imports _thread
7
tk = import_module('tkinter') # imports _tkinter
8
idletest = import_module('idlelib.idle_test')
+# Make sure TCL_LIBRARY is set properly on Windows. Note that this will
9
+# cause a warning about test_idle modifying the environment
10
+import_fresh_module('tkinter._fix')
11
12
# Without test_main present, regrtest.runtest_inner (line1219) calls
13
# unittest.TestLoader().loadTestsFromModule(this_module) which calls
0 commit comments