Skip to content

object_json_test.py #24

Open
Open
@chhenning

Description

..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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions