Commit 5d38a086 authored by Jason Madden's avatar Jason Madden

Fix test_new_ghost_w_persistent_class under PyPy3, failing due to a...

Fix test_new_ghost_w_persistent_class under PyPy3, failing due to a bytes/unicode issue. It seems the cPickleCache under Python 3 accepts unicode objects as the oid, but the pure-Python version doesn't.
parent 165f6408
......@@ -55,10 +55,10 @@ def test_new_ghost_w_persistent_class():
>>> import persistent
>>> jar = object()
>>> cache = persistent.PickleCache(jar, 10, 100)
>>> cache.new_ghost('1', PC)
>>> cache.new_ghost(b'1', PC)
>>> PC._p_oid
'1'
>>> PC._p_oid == b'1'
True
>>> PC._p_jar is jar
True
>>> PC._p_serial
......@@ -95,4 +95,3 @@ def test_suite():
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
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