Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #18 from PuercoPop/master

Fix for py.test
  • Loading branch information...
commit c18385d32784bcd66b2da1171497d29fdd2b2cb0 2 parents 376a7d8 + 637852e
@spulec authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  freezegun/api.py
View
2  freezegun/api.py
@@ -117,7 +117,7 @@ def start(self):
for module in modules:
if module is None:
continue
- if module.__name__ != 'datetime':
+ if hasattr(module, "__name__") and module.__name__ != 'datetime':
if hasattr(module, 'datetime') and module.datetime == real_datetime:
module.datetime = FakeDatetime
if hasattr(module, 'date') and module.date == real_date:
Please sign in to comment.
Something went wrong with that request. Please try again.