1  import os.path
       2  import unittest
       3  
       4  from test.support import (
       5      check_sanitizer,
       6      import_helper,
       7      load_package_tests,
       8      requires,
       9      )
      10  
      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.
      19  requires('gui')
      20  
      21  
      22  def load_tests(*args):
      23      return load_package_tests(os.path.dirname(__file__), *args)