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
4a0f8b89
Commit
4a0f8b89
authored
Mar 21, 2010
by
Florent Xicluna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence more py3k warnings in unittest.case.
parent
236da4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/unittest/case.py
Lib/unittest/case.py
+2
-2
No files found.
Lib/unittest/case.py
View file @
4a0f8b89
...
...
@@ -568,7 +568,7 @@ class TestCase(object):
msg: Optional message to use on failure instead of a list of
differences.
"""
if
seq_type
!=
None
:
if
seq_type
is
not
None
:
seq_type_name
=
seq_type
.
__name__
if
not
isinstance
(
seq1
,
seq_type
):
raise
self
.
failureException
(
'First sequence is not a %s: %s'
...
...
@@ -802,7 +802,7 @@ class TestCase(object):
with
warnings
.
catch_warnings
():
if
sys
.
py3kwarning
:
# Silence Py3k warning raised during the sorting
for
_msg
in
[
"
dict
inequality comparisons"
,
for
_msg
in
[
"
(code|dict|type)
inequality comparisons"
,
"builtin_function_or_method order comparisons"
,
"comparing unequal types"
]:
warnings
.
filterwarnings
(
"ignore"
,
_msg
,
DeprecationWarning
)
...
...
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