[issue21503] Use test_both() consistently throughout test_importlib
Eric Snow
report at bugs.python.org
Wed May 14 02:25:29 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue21503>
_______________________________________
More information about the Python-bugs-list
mailing list