tix: old to new test API (#45223)

This commit is contained in:
AcriusWinter 2024-07-15 17:31:02 -07:00 committed by GitHub
parent 35bd21fc64
commit 8be1f26ac6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,12 +77,12 @@ def darwin_fix(self):
if "platform=darwin" in self.spec: if "platform=darwin" in self.spec:
fix_darwin_install_name(self.prefix.lib.Tix + str(self.version)) fix_darwin_install_name(self.prefix.lib.Tix + str(self.version))
def test(self): def test_tcl(self):
"""Test that tix 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 tix can be loaded" tcl(test_file)
)
@property @property
def libs(self): def libs(self):