Skip to content

Commit

Permalink
Fix an import in refleak test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Levkivskyi committed Feb 16, 2018
1 parent e0c978b commit b370dfe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Lib/test/libregrtest/refleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
import warnings
from inspect import isabstract
from test import support
from _abc import _get_dump
try:
from _abc import _get_dump
except ImportError:
def _get_dump(cls):
# For legacy Python version
return (cls._abc_registry, cls._abc_cache,
cls._abc_negative_cache, cls._abc_negative_cache_version)


def dash_R(the_module, test, indirect_test, huntrleaks):
Expand Down

0 comments on commit b370dfe

Please sign in to comment.