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
d3791ed4
Commit
d3791ed4
authored
Mar 20, 2010
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the warnings filter usage in test_http_cookies.
parent
2298d538
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
Lib/test/test_http_cookies.py
Lib/test/test_http_cookies.py
+11
-4
No files found.
Lib/test/test_http_cookies.py
View file @
d3791ed4
# Simple test suite for http/cookies.py
from
test.support
import
run_unittest
,
run_doctest
from
test.support
import
run_unittest
,
run_doctest
,
check_warnings
import
unittest
from
http
import
cookies
import
warnings
warnings
.
filterwarnings
(
"ignore"
,
".* class is insecure.*"
,
DeprecationWarning
)
class
CookieTests
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
_warnings_manager
=
check_warnings
()
self
.
_warnings_manager
.
__enter__
()
warnings
.
filterwarnings
(
"ignore"
,
".* class is insecure.*"
,
DeprecationWarning
)
def
tearDown
(
self
):
self
.
_warnings_manager
.
__exit__
(
None
,
None
,
None
)
def
test_basic
(
self
):
cases
=
[
{
'data'
:
'chips=ahoy; vienna=finger'
,
...
...
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