There we go again... Seems like there's a 22 second difference between ASCII timestamps and tuple timestamps. First thought was that it may have something to do with TAI vs. UTC, but in that case it should neither be the same for 1994 and 2001 nor does the value fit (would be some 30 seconds). 246 tests OK. 1 test failed: test_cookielib 32 tests skipped: test_aepack test_al test_applesingle test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_gl test_imgfile test_linuxaudiodev test_macfs test_macostools test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_urllib2net test_urllibnet test_winreg test_winsound Those skips are all expected on linux2. make: *** [test] Error 1 !!! ERROR: dev-lang/python-2.4.2 failed. !!! Function src_test, Line 279, Exitcode 2 !!! make test failed !!! If you need support, post the topmost build error, NOT this status message. root@caravan:/var/tmp/portage/python-2.4.2/work/Python-2.4.2/Lib/test# ../../python test_cookielib.py test_http2time (__main__.DateTimeTests) ... FAIL test_http2time_formats (__main__.DateTimeTests) ... FAIL test_http2time_garbage (__main__.DateTimeTests) ... ok test_time2isoz (__main__.DateTimeTests) ... FAIL test_join_header_words (__main__.HeaderTests) ... ok test_parse_ns_headers (__main__.HeaderTests) ... ok test_parse_ns_headers_special_names (__main__.HeaderTests) ... ok test_roundtrip (__main__.HeaderTests) ... ok test_split_header_words (__main__.HeaderTests) ... ok test_Cookie_iterator (__main__.CookieTests) ... ok test_bad_cookie_header (__main__.CookieTests) ... ok test_default_path (__main__.CookieTests) ... ok test_domain_allow (__main__.CookieTests) ... ok test_domain_block (__main__.CookieTests) ... ok test_domain_match (__main__.CookieTests) ... ok test_domain_mirror (__main__.CookieTests) ... ok test_domain_return_ok (__main__.CookieTests) ... ok test_escape_path (__main__.CookieTests) ... ok test_expires (__main__.CookieTests) ... ok test_is_HDN (__main__.CookieTests) ... ok test_missing_final_slash (__main__.CookieTests) ... ok test_missing_value (__main__.CookieTests) ... ok test_no_return_comment (__main__.CookieTests) ... ok test_ns_parser (__main__.CookieTests) ... ok test_ns_parser_special_names (__main__.CookieTests) ... ok test_parse_ns_headers (__main__.CookieTests) ... ok test_path_mirror (__main__.CookieTests) ... ok test_port_mirror (__main__.CookieTests) ... ok test_quote_cookie_value (__main__.CookieTests) ... ok test_reach (__main__.CookieTests) ... ok test_request_host (__main__.CookieTests) ... ok test_request_path (__main__.CookieTests) ... ok test_request_port (__main__.CookieTests) ... ok test_secure (__main__.CookieTests) ... ok test_two_component_domain_ns (__main__.CookieTests) ... ok test_two_component_domain_rfc2965 (__main__.CookieTests) ... ok test_wrong_domain (__main__.CookieTests) ... ok test_lwp_valueless_cookie (__main__.FileCookieJarTests) ... ok test_empty_path (__main__.LWPCookieTests) ... ok test_ietf_example_1 (__main__.LWPCookieTests) ... ok test_ietf_example_2 (__main__.LWPCookieTests) ... ok test_intranet_domains_2965 (__main__.LWPCookieTests) ... ok test_intranet_domains_ns (__main__.LWPCookieTests) ... ok test_mozilla (__main__.LWPCookieTests) ... ok test_netscape_example_1 (__main__.LWPCookieTests) ... ok test_netscape_example_2 (__main__.LWPCookieTests) ... ok test_netscape_misc (__main__.LWPCookieTests) ... ok test_rejection (__main__.LWPCookieTests) ... FAIL test_session_cookies (__main__.LWPCookieTests) ... ok test_url_encoding (__main__.LWPCookieTests) ... ok ====================================================================== FAIL: test_http2time (__main__.DateTimeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_cookielib.py", line 33, in test_http2time self.assertEquals(parse_date("01 Jan 2001"), (2001, 1, 1, 0, 0, 0.0)) AssertionError: (2000, 12, 31, 23, 59, 38) != (2001, 1, 1, 0, 0, 0.0) ====================================================================== FAIL: test_http2time_formats (__main__.DateTimeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_cookielib.py", line 70, in test_http2time_formats "%s => '%s' (%s)" % (test_t, result, expected)) AssertionError: 760233600 => '1994-02-02 23:59:42Z' (1994-02-03 00:00:00Z) ====================================================================== FAIL: test_time2isoz (__main__.DateTimeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_cookielib.py", line 16, in test_time2isoz self.assertEquals(time2isoz(base), "2002-04-19 14:36:40Z") AssertionError: '2002-04-19 14:36:18Z' != '2002-04-19 14:36:40Z' ====================================================================== FAIL: test_rejection (__main__.LWPCookieTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_cookielib.py", line 1447, in test_rejection self.assertEquals(old, repr(c)) AssertionError: '<_LWPCookieJar.LWPCookieJar[Cookie(version=1, name=\'wow\', value=\'flutter\', port=None, port_specified=False, domain=\'.a.acme.com\', domain_specified=True, domain_initial_dot=True, path=\'/\', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'ping\', value=\'pong\', port=None, port_specified=False, domain=\'.acme.com\', domain_specified=True, domain_initial_dot=False, path=\'/\', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'bang\', value=\'wallop\', port=\'90,100,80,8080\', port_specified=True, domain=\'.sol.no\', domain_specified=True, domain_initial_dot=True, path=\'/\', path_specified=False, secure=False, expires=1140979244, discard=False, comment=\'Just kidding! ("|\\\\\\\\) \', comment_url=None, rest={}), Cookie(version=1, name=\'foo9\', value=\'bar\', port=\'80\', port_specified=False, domain=\'.sol.no\', domain_specified=True, domain_initial_dot=True, path=\'/\', path_specified=False, secure=False, expires=1140979244, discard=False, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'bing\', value=\'bong\', port=None, port_specified=False, domain=\'.sol.no\', domain_specified=True, domain_initial_dot=True, path=\'/foo\', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'foo8\', value=\'bar\', port=None, port_specified=False, domain=\'www.sol.no\', domain_specified=False, domain_initial_dot=False, path=\'/%3Coo\', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={})]>' != '<_LWPCookieJar.LWPCookieJar[Cookie(version=1, name=\'wow\', value=\'flutter\', port=None, port_specified=False, domain=\'.a.acme.com\', domain_specified=True, domain_initial_dot=True, path=\'/\', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'ping\', value=\'pong\', port=None, port_specified=False, domain=\'.acme.com\', domain_specified=True, domain_initial_dot=False, path=\'/\', path_specified=False, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'bang\', value=\'wallop\', port=\'90,100,80,8080\', port_specified=True, domain=\'.sol.no\', domain_specified=True, domain_initial_dot=True, path=\'/\', path_specified=False, secure=False, expires=1140979222, discard=False, comment=\'Just kidding! ("|\\\\\\\\) \', comment_url=None, rest={}), Cookie(version=1, name=\'foo9\', value=\'bar\', port=\'80\', port_specified=False, domain=\'.sol.no\', domain_specified=True, domain_initial_dot=True, path=\'/\', path_specified=False, secure=False, expires=1140979222, discard=False, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'bing\', value=\'bong\', port=None, port_specified=False, domain=\'.sol.no\', domain_specified=True, domain_initial_dot=True, path=\'/foo\', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}), Cookie(version=1, name=\'foo8\', value=\'bar\', port=None, port_specified=False, domain=\'www.sol.no\', domain_specified=False, domain_initial_dot=False, path=\'/%3Coo\', path_specified=True, secure=False, expires=None, discard=True, comment=None, comment_url=None, rest={})]>' ---------------------------------------------------------------------- Ran 50 tests in 0.254s FAILED (failures=4) Traceback (most recent call last): File "test_cookielib.py", line 1662, in ? test_main(verbose=True) File "test_cookielib.py", line 1658, in test_main LWPCookieTests, File "/var/tmp/portage/python-2.4.2/work/Python-2.4.2/Lib/test/test_support.py", line 290, in run_unittest run_suite(suite, testclass) File "/var/tmp/portage/python-2.4.2/work/Python-2.4.2/Lib/test/test_support.py", line 274, in run_suite raise TestFailed(msg) test.test_support.TestFailed: errors occurred; run in verbose mode for details
on amd64, it fails test_hotshot
what timezone have you set on this box? it seems very odd because i don't get that with any of the 4 gentoo boxes i have. >>> from cookielib import http2time >>> http2time('01 Jan 2001') 978307200 >>> time.gmtime(978307200) (2001, 1, 1, 0, 0, 0, 0, 1, 0)
(In reply to comment #1) > on amd64, it fails test_hotshot That passed for me on a vanilla system, failed on hardened. Could be a difference in versions of the toolchain. I'll raise a separate bug for this though; it's not the same issue as in summary.
the only way to confirm that is for the reporter to post emerge --info.
I've excluded the cookielib test in 2.4.4-r1.