** Also affects: python-oslo.serialization (Ubuntu)
Importance: Undecided
Status: New
** Changed in: python-oslo.serialization (Ubuntu)
Assignee: (unassigned) => James Page (james-page)
** Description changed:
Ubuntu 14.10 builds the datetime module directly into python; so the
"from" clause in the nasties test fails depending on target
- distribution.
+ distribution:
+
+ ======================================================================
+ FAIL: tests.test_jsonutils.ToPrimitiveTestCase.test_nasties
+ tags: worker-0
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File
"/home/jamespage/src/upstream/oslo.serialization/tests/test_jsonutils.py", line
224, in test_nasties
+ self.assertTrue(ret[0].startswith(u"<module 'datetime' from "))
+ File "/usr/lib/python2.7/unittest/case.py", line 422, in assertTrue
+ raise self.failureException(msg)
+ AssertionError: False is not true
+ Traceback (most recent call last):
+ _StringException: Empty attachments:
+ stderr
+ stdout
+
+ Traceback (most recent call last):
+ File
"/home/jamespage/src/upstream/oslo.serialization/tests/test_jsonutils.py", line
224, in test_nasties
+ self.assertTrue(ret[0].startswith(u"<module 'datetime' from "))
+ File "/usr/lib/python2.7/unittest/case.py", line 422, in assertTrue
+ raise self.failureException(msg)
+ AssertionError: False is not true
+
+ Traceback (most recent call last):
+ _StringException: Empty attachments:
+ stderr
+ stdout
+
+ Traceback (most recent call last):
+ File
"/home/jamespage/src/upstream/oslo.serialization/tests/test_jsonutils.py", line
224, in test_nasties
+ self.assertTrue(ret[0].startswith(u"<module 'datetime' from "))
+ File "/usr/lib/python2.7/unittest/case.py", line 422, in assertTrue
+ raise self.failureException(msg)
+ AssertionError: False is not true
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1369460
Title:
test_nasties() fails with built-in datetime module
To manage notifications about this bug go to:
https://bugs.launchpad.net/oslo.serialization/+bug/1369460/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs