tk: convert to new stand-alone test process (#38575)

This commit is contained in:
Tamara Dahlgren 2023-07-05 01:55:07 -07:00 committed by GitHub
parent 8372726a88
commit 632f840d8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,14 +91,17 @@ def symlink_wish(self):
with working_dir(self.prefix.bin): with working_dir(self.prefix.bin):
symlink("wish{0}".format(self.version.up_to(2)), "wish") symlink("wish{0}".format(self.version.up_to(2)), "wish")
def test(self): def test_tk_help(self):
self.run_test(self.spec["tk"].command.path, ["-h"], purpose="test wish command") """run tk help"""
tk = self.spec["tk"].command
tk("-h")
def test_tk_load(self):
"""check that tk can be loaded"""
test_data_dir = self.test_suite.current_test_data_dir test_data_dir = self.test_suite.current_test_data_dir
test_file = test_data_dir.join("test.tcl") test_file = test_data_dir.join("test.tcl")
self.run_test( tcl = self.spec["tcl"].command
self.spec["tcl"].command.path, test_file, purpose="test that tk can be loaded" tcl(test_file)
)
@property @property
def command(self): def command(self):