Skip to content

Conversation

@Mariatta
Copy link
Member

  • test_normalization fails if download fails

bpo-29887. The test is still skipped if "-u urlfetch" option is not
passed to regrtest (python3 -m test -u urlfetch test_normalization).

  • Fix ResourceWarning in test_normalization

bpo-29887: Fix ResourceWarning in test_normalization if tests are
interrupted by CTRL+c.
(cherry picked from commit 722a3af)

…onGH-905)

* test_normalization fails if download fails

bpo-29887. The test is still skipped if "-u urlfetch" option is not
passed to regrtest (python3 -m test -u urlfetch test_normalization).

* Fix ResourceWarning in test_normalization

bpo-29887: Fix ResourceWarning in test_normalization if tests are
interrupted by CTRL+c.
(cherry picked from commit 722a3af)
@vstinner
Copy link
Member

Strange, Travis CI failed on an unrelated test:

======================================================================

FAIL: test_write_filtered_python_package (test.test_zipfile.PyZipFileTests)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/home/travis/build/python/cpython/Lib/test/test_zipfile.py", line 811, in test_write_filtered_python_package

    self.assertTrue('SyntaxError' not in reportStr)

AssertionError: False is not true

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

You must also cherry-pick d13d547: see my PR #2275.

vstinner and others added 2 commits June 19, 2017 20:31
Skip test_normalization.test_main() if download raises a permission
error.
(cherry picked from commit d13d547)
@Mariatta
Copy link
Member Author

Thanks @Haypo :) I cherry-picked d13d547.
Since f-strings don't work in this branch, I used %s to format the string.

@vstinner vstinner merged commit 070ba85 into python:3.5 Jun 20, 2017
@vstinner
Copy link
Member

Thanks for the backport @Mariatta !

@Mariatta Mariatta deleted the backport-722a3af-3.5 branch June 20, 2017 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants