New submission from Eric Snow: test_importlib.util provides the test_both() function that facilitates testing both the frozen and source versions of importlib. The function helps to keep the tests more maintainable. However, the following test modules are not using test_both():
Lib/test/test_importlib/test_abc.py Lib/test/test_importlib/test_api.py Lib/test/test_importlib/test_locks.py Lib/test/test_importlib/test_spec.py Lib/test/test_importlib/test_windows.py Furthermore, the remaining test modules use test_both() inconsistently. Here is a patch that makes consistent use of test_both() and formats usage in a way that helps with readability. ---------- assignee: eric.snow components: Tests files: use-test_both-consistently.diff keywords: patch messages: 218494 nosy: brett.cannon, eric.snow priority: low severity: normal stage: needs patch status: open title: Use test_both() consistently throughout test_importlib type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file35246/use-test_both-consistently.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21503> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com