fix tests
This commit is contained in:
parent
1472bcc075
commit
d387e3b976
5
test.py
5
test.py
@ -24,11 +24,14 @@ class TestActionSuite(unittest.TestCase):
|
||||
python_version = ".".join(map(str, sys.version_info[:2]))
|
||||
for package in PACKAGE_MAP.values():
|
||||
if package != PACKAGE_MAP[python_version]:
|
||||
try:
|
||||
print(importlib.import_module(package))
|
||||
except ImportError:
|
||||
pass
|
||||
self.assertRaises(
|
||||
ModuleNotFoundError,
|
||||
importlib.import_module,
|
||||
package,
|
||||
msg=f"Package {package} should not be installed",
|
||||
)
|
||||
else:
|
||||
importlib.import_module(package)
|
||||
|
Loading…
x
Reference in New Issue
Block a user