We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d593074 commit 5454db4Copy full SHA for 5454db4
Lib/test/test_tkinter/__init__.py
@@ -1,18 +1,23 @@
1
import os.path
2
import unittest
3
-from test import support
4
-from test.support import import_helper
5
+from test.support import (
+ check_sanitizer,
6
+ import_helper,
7
+ load_package_tests,
8
+ requires,
9
+ )
10
-if support.check_sanitizer(address=True, memory=True):
11
+
12
+if check_sanitizer(address=True, memory=True):
13
raise unittest.SkipTest("Tests involving libX11 can SEGFAULT on ASAN/MSAN builds")
14
15
# Skip test if _tkinter wasn't built.
16
import_helper.import_module('_tkinter')
17
18
# Skip test if tk cannot be initialized.
-support.requires('gui')
19
+requires('gui')
20
21
22
def load_tests(*args):
- return support.load_package_tests(os.path.dirname(__file__), *args)
23
+ return load_package_tests(os.path.dirname(__file__), *args)
0 commit comments