[issue37473] importlib: Remove libregrtest hack: "We import importlib *ASAP* in order to test #15386"

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: I merged your PR. If someone considers than test_there_can_be_only_one() is not enough, please add a new test. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37473] importlib: Remove libregrtest hack: "We import importlib *ASAP* in order to test #15386"

2019-07-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8b7db5a1114e2113a756bdf8877fbe366055c69a by Victor Stinner in branch 'master': bpo-37473: Don't import importlib ASAP in tests (GH-14661) https://github.com/python/cpython/commit/8b7db5a1114e2113a756bdf8877fbe366055c69a --

[issue37473] importlib: Remove libregrtest hack: "We import importlib *ASAP* in order to test #15386"

2019-07-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14468 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14661 ___ Python tracker ___

[issue37473] importlib: Remove libregrtest hack: "We import importlib *ASAP* in order to test #15386"

2019-07-01 Thread STINNER Victor
New submission from STINNER Victor : Lib/test/regrtest.py starts with: # We import importlib *ASAP* in order to test #15386 import importlib If there is a bug to test, would it be possible to write a dedicated test, rather than putting the test... in the code of the test runner? Code added