Skip to content

Commit

Permalink
fix fakemoduleobject
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Riolo committed Apr 15, 2015
1 parent 5345975 commit d0572d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/martian/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ def __init__(cls, classname, bases, dict_):
return type.__init__(cls, classname, bases, dict_)


if sys.version_info[0] >= 3:
if sys.version_info[0] < 3:
class FakeModuleObject(object):
pass
else:
class FakeModuleObject(object, metaclass = FakeModuleObjectMetaclass):
pass

0 comments on commit d0572d3

Please sign in to comment.