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
c170f37d
Commit
c170f37d
authored
Jun 30, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#18038: Use non-deprecated assert names in tests.
parent
925a3225
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/test/test_pep263.py
Lib/test/test_pep263.py
+5
-5
No files found.
Lib/test/test_pep263.py
View file @
c170f37d
...
...
@@ -59,17 +59,17 @@ class PEP263Test(unittest.TestCase):
compile
(
b'# -*- coding: iso-8859-15 -*-
\
n
'
,
'dummy'
,
'exec'
)
compile
(
b'
\
xef
\
xbb
\
xbf
\
n
'
,
'dummy'
,
'exec'
)
compile
(
b'
\
xef
\
xbb
\
xbf
# -*- coding: utf-8 -*-
\
n
'
,
'dummy'
,
'exec'
)
with
self
.
assertRaisesRegex
p
(
SyntaxError
,
'fake'
):
with
self
.
assertRaisesRegex
(
SyntaxError
,
'fake'
):
compile
(
b'# -*- coding: fake -*-
\
n
'
,
'dummy'
,
'exec'
)
with
self
.
assertRaisesRegex
p
(
SyntaxError
,
'iso-8859-15'
):
with
self
.
assertRaisesRegex
(
SyntaxError
,
'iso-8859-15'
):
compile
(
b'
\
xef
\
xbb
\
xbf
# -*- coding: iso-8859-15 -*-
\
n
'
,
'dummy'
,
'exec'
)
with
self
.
assertRaisesRegex
p
(
SyntaxError
,
'BOM'
):
with
self
.
assertRaisesRegex
(
SyntaxError
,
'BOM'
):
compile
(
b'
\
xef
\
xbb
\
xbf
# -*- coding: iso-8859-15 -*-
\
n
'
,
'dummy'
,
'exec'
)
with
self
.
assertRaisesRegex
p
(
SyntaxError
,
'fake'
):
with
self
.
assertRaisesRegex
(
SyntaxError
,
'fake'
):
compile
(
b'
\
xef
\
xbb
\
xbf
# -*- coding: fake -*-
\
n
'
,
'dummy'
,
'exec'
)
with
self
.
assertRaisesRegex
p
(
SyntaxError
,
'BOM'
):
with
self
.
assertRaisesRegex
(
SyntaxError
,
'BOM'
):
compile
(
b'
\
xef
\
xbb
\
xbf
# -*- coding: fake -*-
\
n
'
,
'dummy'
,
'exec'
)
...
...
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