Skip to content

Instantly share code, notes, and snippets.

@MeiK2333
Created July 15, 2019 11:17
Show Gist options
  • Save MeiK2333/f6b09d1ae69f1d0228a07182550802a3 to your computer and use it in GitHub Desktop.
Save MeiK2333/f6b09d1ae69f1d0228a07182550802a3 to your computer and use it in GitHub Desktop.
../python.exe test/test_http_cookies.py
test_basic (__main__.CookieTests) ... FAIL
test_comment_quoting (__main__.CookieTests) ... ok
test_extended_encode (__main__.CookieTests) ... ok
test_extra_spaces (__main__.CookieTests) ... ok
test_illegal_chars (__main__.CookieTests) ... FAIL
test_invalid_cookies (__main__.CookieTests) ... FAIL
test_load (__main__.CookieTests) ... ok
test_pickle (__main__.CookieTests) ... ok
test_quoted_meta (__main__.CookieTests) ... ok
test_samesite_attrs (__main__.CookieTests) ... ok
test_secure_httponly_false_if_not_present (__main__.CookieTests) ... ok
test_secure_httponly_true_if_have_value (__main__.CookieTests) ... ok
test_secure_httponly_true_if_present (__main__.CookieTests) ... ok
test_set_secure_httponly_attrs (__main__.CookieTests) ... ok
test_special_attrs (__main__.CookieTests) ... ok
test_copy (__main__.MorselTests) ... ok
test_defaults (__main__.MorselTests) ... ok
test_eq (__main__.MorselTests) ... ok
test_pickle (__main__.MorselTests) ... ok
test_repr (__main__.MorselTests) ... ok
test_reserved_keys (__main__.MorselTests) ... ok
test_set_properties (__main__.MorselTests) ... ok
test_setdefault (__main__.MorselTests) ... ok
test_setitem (__main__.MorselTests) ... ok
test_setter (__main__.MorselTests) ... FAIL
test_update (__main__.MorselTests) ... ok
======================================================================
FAIL: test_basic (__main__.CookieTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/meik/cpython/Lib/test/test_http_cookies.py", line 56, in test_basic
self.assertEqual(repr(C), case['repr'])
AssertionError: '<SimpleCookie: >' != '<SimpleCookie: keebler=\'E=mc2; L="Loves"; fudge=\\n;\'>'
- <SimpleCookie: >
+ <SimpleCookie: keebler='E=mc2; L="Loves"; fudge=\n;'>
======================================================================
FAIL: test_illegal_chars (__main__.CookieTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/meik/cpython/Lib/test/test_http_cookies.py", line 221, in test_illegal_chars
C.load(rawdata)
AssertionError: CookieError not raised
======================================================================
FAIL: test_invalid_cookies (__main__.CookieTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/meik/cpython/Lib/test/test_http_cookies.py", line 201, in test_invalid_cookies
self.assertEqual(dict(C), {})
AssertionError: {']foo': <Morsel: ]foo=x>} != {}
- {']foo': <Morsel: ]foo=x>}
+ {}
======================================================================
FAIL: test_setter (__main__.MorselTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/meik/cpython/Lib/test/test_http_cookies.py", line 289, in test_setter
self.assertRaises(cookies.CookieError,
AssertionError: CookieError not raised by set
----------------------------------------------------------------------
Ran 26 tests in 0.007s
FAILED (failures=4)
Traceback (most recent call last):
File "/Users/meik/cpython/Lib/test/test_http_cookies.py", line 487, in <module>
test_main()
File "/Users/meik/cpython/Lib/test/test_http_cookies.py", line 483, in test_main
run_unittest(CookieTests, MorselTests)
File "/Users/meik/cpython/Lib/test/support/__init__.py", line 2083, in run_unittest
_run_suite(suite)
File "/Users/meik/cpython/Lib/test/support/__init__.py", line 2002, in _run_suite
raise TestFailed(err)
test.support.TestFailed: multiple errors occurred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment