Skip to content

Commit 090c7c6

Browse files
committed
Fix module names that don't have a .
1 parent 81367ce commit 090c7c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

array_api_tests/_array_module.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
if array_module is None:
1010
if 'ARRAY_API_TESTS_MODULE' in os.environ:
1111
mod_name = os.environ['ARRAY_API_TESTS_MODULE']
12-
_module, _sub = mod_name.split('.', 1)
12+
_module, _sub = mod_name, None
13+
if '.' in mod_name:
14+
_module, _sub = mod_name.split('.', 1)
1315
mod = import_module(_module)
1416
if _sub:
1517
mod = getattr(mod, _sub)

0 commit comments

Comments
 (0)