Skip to content

Commit

Permalink
Merge pull request #415 from jdufresne/mro
Browse files Browse the repository at this point in the history
Always use Python 3 mro method
  • Loading branch information
boxed committed Aug 25, 2021
2 parents 28ee43e + 12406a9 commit 92624e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freezegun/api.py
Expand Up @@ -592,7 +592,7 @@ def tearDownClass(cls):

seen = set()

klasses = klass.mro() if hasattr(klass, 'mro') else [klass] + list(klass.__bases__)
klasses = klass.mro()
for base_klass in klasses:
for (attr, attr_value) in base_klass.__dict__.items():
if attr.startswith('_') or attr in seen:
Expand Down

0 comments on commit 92624e4

Please sign in to comment.