Skip to content

Commit c73acfd

Browse files
committed
fix testing clr module type name in python 2 tests
1 parent 4bc6a60 commit c73acfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tests/test_compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def isCLRRootModule(self, object):
2828
if six.PY3:
2929
# in Python 3 the clr module is a normal python module
3030
return object.__name__ == "clr"
31-
return type(object).__name__ == 'CLRModuleObject'
31+
return type(object).__name__ == 'CLRModule'
3232

3333
def isCLRClass(self, object):
3434
return type(object).__name__ == 'CLR Metatype' # for now

src/tests/test_module.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def isCLRRootModule(self, object):
3232
if six.PY3:
3333
# in Python 3 the clr module is a normal python module
3434
return object.__name__ == "clr"
35-
return type(object).__name__ == 'CLRModuleObject'
35+
return type(object).__name__ == 'CLRModule'
3636

3737
def isCLRClass(self, object):
3838
return type(object).__name__ == 'CLR Metatype' # for now

0 commit comments

Comments
 (0)