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
8a078d5b
Commit
8a078d5b
authored
Aug 03, 2010
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deprecation warnings in test_cgi.py
parent
f7a13b32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_cgi.py
Lib/test/test_cgi.py
+3
-2
No files found.
Lib/test/test_cgi.py
View file @
8a078d5b
from
test.test_support
import
run_unittest
,
check_warnings
from
test.test_support
import
run_unittest
,
check_warnings
,
_check_py3k_warnings
import
cgi
import
os
import
sys
...
...
@@ -179,7 +179,8 @@ class CgiTests(unittest.TestCase):
self
.
assertEqual
(
d
[
k
],
v
)
for
k
,
v
in
d
.
items
():
self
.
assertEqual
(
expect
[
k
],
v
)
self
.
assertEqual
(
sorted
(
expect
.
values
()),
sorted
(
d
.
values
()))
with
_check_py3k_warnings
():
self
.
assertEqual
(
sorted
(
expect
.
values
()),
sorted
(
d
.
values
()))
def
test_log
(
self
):
cgi
.
log
(
"Testing"
)
...
...
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