Commit 55bdb8e4 authored by Guilherme Polo's avatar Guilherme Polo

Checking for tk availability before continuing (basically the same that is...

Checking for tk availability before continuing (basically the same that is done in test_ttk_guionly)
parent bbb7efd7
import os
import sys
from _tkinter import TclError
import Tkinter
from test import test_support
try:
Tkinter.Button()
except Tkinter.TclError, msg:
# assuming tk is not available
raise test_support.TestSkipped("tk not available: %s" % msg)
this_dir = os.path.dirname(os.path.abspath(__file__))
lib_tk_test = os.path.abspath(os.path.join(this_dir, os.path.pardir,
'lib-tk', 'test'))
......
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