Created
June 21, 2017 14:52
-
-
Save alisianoi/7697afbed22c468cb1806b5dd2807623 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
FAIL: test_mktime_args (tests.modules.test_time.TimeTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/alex/Code/batavia/tests/modules/test_time.py", line 223, in test_mktime_args | |
self.assertCodeExecution(test_str) | |
File "/home/alex/Code/batavia/tests/utils.py", line 445, in assertCodeExecution | |
self.assertEqual(js_out, py_out, context) | |
AssertionError: '>>> [124 chars]n10360800.0\n>>> time.mktime((1970, 1, 5, 0, 0[259 chars].0\n' != '>>> [124 chars]n10364400.0\n>>> time.mktime((1970, 1, 5, 0, 0[259 chars].0\n' | |
>>> import time | |
>>> time.mktime((1999, 1, 1, 0, 0, 0, 0, 0, -1)) | |
915145200.0 | |
>>> time.mktime((1970, 5, 1, 0, 0, 0, 0, 0, 1)) | |
- 10360800.0 | |
? ^^ | |
+ 10364400.0 | |
? ^^ | |
>>> time.mktime((1970, 1, 5, 0, 0, 0, 0, 0, -1)) | |
342000.0 | |
>>> time.mktime((1970, 1, 1, 5, 0, 0, 0, 0, -1)) | |
14400.0 | |
>>> time.mktime((1970, 1, 1, 0, 5, 0, 0, 0, -1)) | |
-3300.0 | |
>>> time.mktime((1970, 1, 1, 0, 0, 5, 0, 0, -1)) | |
-3595.0 | |
>>> time.mktime((1970, 1, 1, 0, 0, 0, 5, 0, -1)) | |
-3600.0 | |
: Global context | |
====================================================================== | |
FAIL: test_mktime_dst (tests.modules.test_time.TimeTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/alex/Code/batavia/tests/modules/test_time.py", line 248, in test_mktime_dst | |
self.assertCodeExecution(test_str) | |
File "/home/alex/Code/batavia/tests/utils.py", line 445, in assertCodeExecution | |
self.assertEqual(js_out, py_out, context) | |
AssertionError: '>>> [301 chars])\n7768800.0\ntrying month 5\n>>> time.mktime([586 chars].0\n' != '>>> [301 chars])\n7772400.0\ntrying month 5\n>>> time.mktime([586 chars].0\n' | |
>>> import time | |
trying month 1 | |
>>> time.mktime((1970, 1, 1, 0, 0, 0, 0, 0, 0)) | |
-3600.0 | |
trying month 2 | |
>>> time.mktime((1970, 2, 1, 0, 0, 0, 0, 0, 0)) | |
2674800.0 | |
trying month 3 | |
>>> time.mktime((1970, 3, 1, 0, 0, 0, 0, 0, 0)) | |
5094000.0 | |
trying month 4 | |
>>> time.mktime((1970, 4, 1, 0, 0, 0, 0, 0, 1)) | |
- 7768800.0 | |
+ 7772400.0 | |
trying month 5 | |
>>> time.mktime((1970, 5, 1, 0, 0, 0, 0, 0, 1)) | |
- 10360800.0 | |
? ^^ | |
+ 10364400.0 | |
? ^^ | |
trying month 6 | |
>>> time.mktime((1970, 6, 1, 0, 0, 0, 0, 0, 1)) | |
- 13039200.0 | |
? ^^ | |
+ 13042800.0 | |
? ^ + | |
trying month 7 | |
>>> time.mktime((1970, 7, 1, 0, 0, 0, 0, 0, 1)) | |
- 15631200.0 | |
? ^^ | |
+ 15634800.0 | |
? ^^ | |
trying month 8 | |
>>> time.mktime((1970, 8, 1, 0, 0, 0, 0, 0, 1)) | |
- 18309600.0 | |
+ 18313200.0 | |
trying month 9 | |
>>> time.mktime((1970, 9, 1, 0, 0, 0, 0, 0, 1)) | |
- 20988000.0 | |
+ 20991600.0 | |
trying month 10 | |
>>> time.mktime((1970, 10, 1, 0, 0, 0, 0, 0, 1)) | |
- 23580000.0 | |
? ^^ | |
+ 23583600.0 | |
? ^^ | |
trying month 11 | |
>>> time.mktime((1970, 11, 1, 0, 0, 0, 0, 0, 1)) | |
- 26258400.0 | |
+ 26262000.0 | |
trying month 12 | |
>>> time.mktime((1970, 12, 1, 0, 0, 0, 0, 0, 0)) | |
28854000.0 | |
: Global context | |
---------------------------------------------------------------------- | |
Ran 12411 tests in 2797.798s | |
FAILED (failures=2, skipped=3, expected failures=2789) | |
python setup.py test 2573.06s user 337.61s system 104% cpu 46:38.48 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment