We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e225a9f commit ddcef92Copy full SHA for ddcef92
graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py
@@ -172,14 +172,13 @@ def fun():
172
passing_tests = []
173
failed_tests = []
174
175
- try:
176
- imported_test_module = __import__(testmod)
177
- except:
178
- imported_test_module = None
179
-
180
def get_pass_name(funcname, classname):
181
- # try hard to get a most specific pattern
182
- if imported_test_module:
+ try:
+ imported_test_module = __import__(testmod)
+ except:
+ imported_test_module = None
+ else:
+ # try hard to get a most specific pattern
183
classname = "".join(classname.rpartition(testmod)[1:])
184
clazz = imported_test_module
185
path_to_class = classname.split(".")[1:]
0 commit comments