File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 22from copy import copy
33import logging
44import arcade
5- import inspect
65from 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
You can’t perform that action at this time.
0 commit comments