We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ac313 commit 5056d91Copy full SHA for 5056d91
1 file changed
tests/unit/test_arcade.py
@@ -2,7 +2,6 @@
2
from copy import copy
3
import logging
4
import arcade
5
-import inspect
6
from arcade import *
7
8
@@ -17,13 +16,9 @@ def test_import():
17
16
remaining = arcade_names - common
18
for name in copy(remaining):
19
attr = getattr(arcade, name)
20
- if type(attr) is ModuleType or not inspect.isroutine(attr):
+ if type(attr) is ModuleType:
21
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.'):
+ elif not attr.__module__.startswith('arcade.'):
27
28
29
assert len(remaining) == 0
0 commit comments