Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object_json_test.py #24

Open
chhenning opened this issue Jan 18, 2018 · 0 comments
Open

object_json_test.py #24

chhenning opened this issue Jan 18, 2018 · 0 comments

Comments

@chhenning
Copy link
Owner

..FF...........
======================================================================
FAIL: testDates (__main__.TestObjectJson)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "object_json_test.py", line 54, in testDates
    '{"py/object": "datetime.date", '
  File "D:\nupic\src\python\python3\nupic\support\unittesthelpers\testcasebase.py", line 112, in assertEqual
    unittest.TestCase.assertEqual(self, first, second, self.__wrapMsg(msg))
AssertionError: '{"py/repr": "datetime.date(2012, 9, 25)", "py/object": "datetime.date"}' != '{"py/object": "datetime.date", "py/repr": "datetime.date(2012, 9, 25)"}'
- {"py/repr": "datetime.date(2012, 9, 25)", "py/object": "datetime.date"}
+ {"py/object": "datetime.date", "py/repr": "datetime.date(2012, 9, 25)"}
 : None

======================================================================
FAIL: testDatetimes (__main__.TestObjectJson)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "object_json_test.py", line 65, in testDatetimes
    '{"py/object": "datetime.datetime", "py/repr": '
  File "D:\nupic\src\python\python3\nupic\support\unittesthelpers\testcasebase.py", line 112, in assertEqual
    unittest.TestCase.assertEqual(self, first, second, self.__wrapMsg(msg))
AssertionError: '{"py/repr": "datetime.datetime(2012, 9, 25, 14[48 chars]me"}' != '{"py/object": "datetime.datetime", "py/repr": [48 chars]9)"}'
- {"py/repr": "datetime.datetime(2012, 9, 25, 14, 33, 8, 455969)", "py/object": "datetime.datetime"}
+ {"py/object": "datetime.datetime", "py/repr": "datetime.datetime(2012, 9, 25, 14, 33, 8, 455969)"}
 : None

----------------------------------------------------------------------
Ran 15 tests in 0.011s

FAILED (failures=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant