Skip to content

Commit 5056d91

Browse files
committed
Revert "Abomination of a test fix" (Test not actually fixed)
This reverts commit c59d674.
1 parent 20ac313 commit 5056d91

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/unit/test_arcade.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from copy import copy
33
import logging
44
import arcade
5-
import inspect
65
from arcade import *
76

87

@@ -17,13 +16,9 @@ def test_import():
1716
remaining = arcade_names - common
1817
for name in copy(remaining):
1918
attr = getattr(arcade, name)
20-
if type(attr) is ModuleType or not inspect.isroutine(attr):
19+
if type(attr) is ModuleType:
2120
remaining.remove(name)
22-
# Extra awful trick because:
23-
# 1. attempting to get __module__ of bool members raises AttributeError
24-
# 2. inspect.isbuiltin(bool) does not return True for bool
25-
# 2. inspect.getmodule(bool) returns the builtins module
26-
elif not inspect.getmodule(attr).__name__.startswith('arcade.'):
21+
elif not attr.__module__.startswith('arcade.'):
2722
remaining.remove(name)
2823

2924
assert len(remaining) == 0

0 commit comments

Comments
 (0)