]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406) (GH-8407)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Jul 2018 12:39:11 +0000 (05:39 -0700)
committerVictor Stinner <vstinner@redhat.com>
Mon, 23 Jul 2018 12:39:11 +0000 (14:39 +0200)
commitba1810e1ec8973e48128e17845b981d8894c0550
treef5b748c53adc41990616c28dffbce5a488927d40
parent05a72f15f76301c505a91728f0818b421fddd290
bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406) (GH-8407)

When Python is installed on Windows, python -m test test_tools failed
because it tried to run Tools\scripts\2to3.py which requires an
argument. Skip this script. On other platforms or on Windows but when
run from source code (not installed), the script is called "2to3"
instead of "2to.py" and so was already skipped.

Modify also the unit test to unload all modules which have been
loaded by the test.
(cherry picked from commit 752d4b7531093c55d6f0a5846748f981d79b29d3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_tools/test_sundry.py