Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
85891ac1
Commit
85891ac1
authored
Sep 21, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15304: fix wrong warning message in test.support.temp_cwd().
parent
80a865f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/test/support.py
Lib/test/support.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/support.py
View file @
85891ac1
...
...
@@ -600,7 +600,7 @@ def temp_cwd(name='tempcwd', quiet=False, path=None):
except
OSError
:
if
not
quiet
:
raise
warnings
.
warn
(
'tests may fail, unable to change the CWD to '
+
name
,
warnings
.
warn
(
'tests may fail, unable to change the CWD to '
+
path
,
RuntimeWarning
,
stacklevel
=
3
)
try
:
yield
os
.
getcwd
()
...
...
Misc/NEWS
View file @
85891ac1
...
...
@@ -494,6 +494,9 @@ Extension Modules
Tests
-----
- Issue #15304: Fix warning message when os.chdir() fails inside
test.support.temp_cwd(). Patch by Chris Jerdonek.
- Issue #15802: Fix test logic in TestMaildir.test_create_tmp. Patch
by Serhiy Storchaka.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment