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
2d5a0928
Commit
2d5a0928
authored
Jan 24, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20384: Fix the test_tarfile test on Windows.
On Windows os.open() error message doesn't contain file name.
parent
f0b463ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Lib/test/test_tarfile.py
Lib/test/test_tarfile.py
+6
-1
No files found.
Lib/test/test_tarfile.py
View file @
2d5a0928
...
@@ -239,7 +239,12 @@ class CommonReadTest(ReadTest):
...
@@ -239,7 +239,12 @@ class CommonReadTest(ReadTest):
def
test_non_existent_tarfile
(
self
):
def
test_non_existent_tarfile
(
self
):
# Test for issue11513: prevent non-existent gzipped tarfiles raising
# Test for issue11513: prevent non-existent gzipped tarfiles raising
# multiple exceptions.
# multiple exceptions.
with
self
.
assertRaisesRegex
(
FileNotFoundError
,
"xxx"
):
test
=
'xxx'
if
sys
.
platform
==
'win32'
and
'|'
in
self
.
mode
:
# Issue #20384: On Windows os.open() error message doesn't
# contain file name.
text
=
''
with
self
.
assertRaisesRegex
(
FileNotFoundError
,
test
):
tarfile
.
open
(
"xxx"
,
self
.
mode
)
tarfile
.
open
(
"xxx"
,
self
.
mode
)
def
test_null_tarfile
(
self
):
def
test_null_tarfile
(
self
):
...
...
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