Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4464432

Browse files
committed
Suppress unsafe *Cookie class warnings
1 parent 7877a76 commit 4464432

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_cookie.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
from test.test_support import verify, verbose, run_doctest
44
import Cookie
55

6+
import warnings
7+
warnings.filterwarnings("ignore",
8+
".* class is insecure.*",
9+
DeprecationWarning)
10+
611
# Currently this only tests SimpleCookie
712

813
cases = [

0 commit comments

Comments
 (0)