Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.7] bpo-30108: Fix test_site setUpModule() #1460

Merged
merged 1 commit into from May 4, 2017
Merged

[2.7] bpo-30108: Fix test_site setUpModule() #1460

merged 1 commit into from May 4, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented May 4, 2017

Oops, I forgot that PermissionError was introduced in Python 3.3!
Replace PermissionError with OSError and check on errno.

Oops, I forgot that PermissionError was introduced in Python 3.3!
Replace PermissionError with OSError and check on errno.
@vstinner vstinner added the type-bug An unexpected behavior, bug, or error label May 4, 2017
@vstinner
Copy link
Member Author

vstinner commented May 4, 2017

Fix AMD64 FreeBSD CURRENT Debug 2.7 buildbot:

======================================================================
ERROR: setUpModule (test.test_site)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/2.7.koobs-freebsd-current/build/Lib/test/test_site.py", line 41, in setUpModule
    except PermissionError as exc:
NameError: global name 'PermissionError' is not defined

@vstinner vstinner merged commit e81e355 into python:2.7 May 4, 2017
@vstinner vstinner deleted the test_site_27 branch May 4, 2017 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants