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
ca01a768
Commit
ca01a768
authored
Oct 15, 2012
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't expect warnings from doctests if they can't run
parent
d7d9a442
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Lib/test/test_doctest.py
Lib/test/test_doctest.py
+3
-1
Lib/test/test_zipimport_support.py
Lib/test/test_zipimport_support.py
+3
-2
No files found.
Lib/test/test_doctest.py
View file @
ca01a768
...
@@ -2673,7 +2673,9 @@ def test_main():
...
@@ -2673,7 +2673,9 @@ def test_main():
from
test
import
test_doctest
from
test
import
test_doctest
# Ignore all warnings about the use of class Tester in this module.
# Ignore all warnings about the use of class Tester in this module.
deprecations
=
[(
"class Tester is deprecated"
,
DeprecationWarning
)]
deprecations
=
[]
if
__debug__
:
deprecations
.
append
((
"class Tester is deprecated"
,
DeprecationWarning
))
if
sys
.
py3kwarning
:
if
sys
.
py3kwarning
:
deprecations
+=
[(
"backquote not supported"
,
SyntaxWarning
),
deprecations
+=
[(
"backquote not supported"
,
SyntaxWarning
),
(
"execfile.. not supported"
,
DeprecationWarning
)]
(
"execfile.. not supported"
,
DeprecationWarning
)]
...
...
Lib/test/test_zipimport_support.py
View file @
ca01a768
...
@@ -179,9 +179,10 @@ class ZipSupportTests(ImportHooksBaseTestCase):
...
@@ -179,9 +179,10 @@ class ZipSupportTests(ImportHooksBaseTestCase):
test_zipped_doctest
.
test_unittest_reportflags
,
test_zipped_doctest
.
test_unittest_reportflags
,
]
]
# Needed for test_DocTestParser and test_debug
# Needed for test_DocTestParser and test_debug
deprecations
=
[
deprecations
=
[]
if
__debug__
:
# Ignore all warnings about the use of class Tester in this module.
# Ignore all warnings about the use of class Tester in this module.
(
"class Tester is deprecated"
,
DeprecationWarning
)]
depcreations
.
append
((
"class Tester is deprecated"
,
DeprecationWarning
))
if
sys
.
py3kwarning
:
if
sys
.
py3kwarning
:
deprecations
+=
[
deprecations
+=
[
(
"backquote not supported"
,
SyntaxWarning
),
(
"backquote not supported"
,
SyntaxWarning
),
...
...
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