Skip to content

[3.6] bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406)#8408

Merged
miss-islington merged 1 commit into
python:3.6from
miss-islington:backport-752d4b7-3.6
Jul 23, 2018
Merged

[3.6] bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406)#8408
miss-islington merged 1 commit into
python:3.6from
miss-islington:backport-752d4b7-3.6

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 23, 2018

Copy link
Copy Markdown
Contributor

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 752d4b7)

Co-authored-by: Victor Stinner vstinner@redhat.com

https://bugs.python.org/issue25094

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 752d4b7)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

@vstinner: Backport status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 1724c0c into python:3.6 Jul 23, 2018
@miss-islington miss-islington deleted the backport-752d4b7-3.6 branch July 23, 2018 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants