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
f10c400b
Commit
f10c400b
authored
Dec 01, 2010
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test failure in debug builds and add NEWS entry for r86908
parent
60901876
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Lib/unittest/test/test_runner.py
Lib/unittest/test/test_runner.py
+3
-3
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/unittest/test/test_runner.py
View file @
f10c400b
...
...
@@ -266,7 +266,7 @@ class Test_TextTestRunner(unittest.TestCase):
# no args -> all the warnings are printed, unittest warnings only once
p
=
subprocess
.
Popen
([
sys
.
executable
,
'_test_warnings.py'
],
**
opts
)
out
,
err
=
get_parse_out_err
(
p
)
self
.
assert
Equal
(
err
[
-
1
],
b'OK'
)
self
.
assert
In
(
b'OK'
,
err
)
# check that the total number of warnings in the output is correct
self
.
assertEqual
(
len
(
out
),
12
)
# check that the numbers of the different kind of warnings is correct
...
...
@@ -287,7 +287,7 @@ class Test_TextTestRunner(unittest.TestCase):
for
args
in
args_list
:
p
=
subprocess
.
Popen
(
args
,
**
opts
)
out
,
err
=
get_parse_out_err
(
p
)
self
.
assert
Equal
(
err
[
-
1
],
b'OK'
)
self
.
assert
In
(
b'OK'
,
err
)
self
.
assertEqual
(
len
(
out
),
0
)
...
...
@@ -296,7 +296,7 @@ class Test_TextTestRunner(unittest.TestCase):
p
=
subprocess
.
Popen
([
sys
.
executable
,
'_test_warnings.py'
,
'always'
],
**
opts
)
out
,
err
=
get_parse_out_err
(
p
)
self
.
assert
Equal
(
err
[
-
1
],
b'OK'
)
self
.
assert
In
(
b'OK'
,
err
)
self
.
assertEqual
(
len
(
out
),
14
)
for
msg
in
[
b'dw'
,
b'iw'
,
b'uw'
,
b'rw'
]:
self
.
assertEqual
(
out
.
count
(
msg
),
3
)
...
...
Misc/NEWS
View file @
f10c400b
...
...
@@ -46,6 +46,8 @@ Core and Builtins
Library
-------
- Issue #10535: Enable silenced warnings in unittest by default.
- Issue #9873: The URL parsing functions in urllib.parse now accept
ASCII byte sequences as input in addition to character strings.
...
...
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