Commit db732a81 authored by Tres Seaver's avatar Tres Seaver

Aim for consistent repr of timestamp between C and Python impl.

parent bbdaeeba
......@@ -148,10 +148,9 @@ class pyTimeStampTests(unittest.TestCase):
def test_repr(self):
from persistent.timestamp import _makeOctets
from persistent._compat import _native
SERIAL = _makeOctets('\x01' * 8)
ts = self._makeOne(SERIAL)
self.assertEqual(repr(ts), _native(SERIAL))
self.assertEqual(repr(ts), repr(SERIAL))
class TimeStampTests(pyTimeStampTests):
......
......@@ -90,7 +90,7 @@ class pyTimeStamp(object):
return self._raw
def __repr__(self):
return _native(self._raw)
return repr(self._raw)
def year(self):
return self._elements[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment