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
30a30c91
Commit
30a30c91
authored
Jul 14, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #27369: Merge test_pyexpat from 3.3 into 3.4
parents
578040be
89a31e9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Lib/test/test_pyexpat.py
Lib/test/test_pyexpat.py
+2
-4
Misc/NEWS
Misc/NEWS
+6
-0
No files found.
Lib/test/test_pyexpat.py
View file @
30a30c91
...
@@ -662,11 +662,9 @@ class MalformedInputTest(unittest.TestCase):
...
@@ -662,11 +662,9 @@ class MalformedInputTest(unittest.TestCase):
# \xc2\x85 is UTF-8 encoded U+0085 (NEXT LINE)
# \xc2\x85 is UTF-8 encoded U+0085 (NEXT LINE)
xml
=
b"<?xml version
\
xc2
\
x85
='1.0'?>
\
r
\
n
"
xml
=
b"<?xml version
\
xc2
\
x85
='1.0'?>
\
r
\
n
"
parser
=
expat
.
ParserCreate
()
parser
=
expat
.
ParserCreate
()
try
:
err_pattern
=
r'XML declaration not well-formed: line 1, column \
d+
'
with self.assertRaisesRegex(expat.ExpatError, err_pattern):
parser.Parse(xml, True)
parser.Parse(xml, True)
self
.
fail
()
except
expat
.
ExpatError
as
e
:
self
.
assertEqual
(
str
(
e
),
'XML declaration not well-formed: line 1, column 14'
)
class ErrorMessageTest(unittest.TestCase):
class ErrorMessageTest(unittest.TestCase):
def test_codes(self):
def test_codes(self):
...
...
Misc/NEWS
View file @
30a30c91
...
@@ -13,6 +13,12 @@ Core and Builtins
...
@@ -13,6 +13,12 @@ Core and Builtins
Library
Library
-------
-------
Tests
-----
- Issue #27369: In test_pyexpat, avoid testing an error message detail that
changed in Expat 2.2.0.
What'
s
New
in
Python
3.4.5
?
What'
s
New
in
Python
3.4.5
?
===========================
===========================
...
...
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