Skip to content

Commit

Permalink
Move os_helper to compat module.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 4, 2021
1 parent e9aa9a4 commit c11976a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ def check__all__(*args, **kwargs):
with contextlib.suppress(KeyError):
kwargs.update(blacklist=kwargs.pop('not_exported'))
return test.support.check__all__(*args, **kwargs)


try:
from test.support import os_helper
except ImportError:
# Python 3.9
import test.support as os_helper # noqa: F401
8 changes: 1 addition & 7 deletions src/test_configparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
from collections import UserDict
from test import support

try:
from test.support import os_helper
except ImportError:
# Python 3.9
import test.support as os_helper # noqa: F401

from compat import check__all__
from compat import check__all__, os_helper

from backports import configparser

Expand Down

0 comments on commit c11976a

Please sign in to comment.