1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Author: Sergio Durigan Junior <sergiodj@debian.org>
Forwarded: no
This patch fixes the build with Python 3.12. It hasn't been forwarded
upstream because the project is unfortunately dead.
Index: python-phpserialize-1.3/tests.py
===================================================================
--- python-phpserialize-1.3.orig/tests.py 2024-06-11 14:18:49.000000000 -0400
+++ python-phpserialize-1.3/tests.py 2024-06-11 14:27:33.525178503 -0400
@@ -89,7 +89,7 @@
x = phpserialize.dumps(user, object_hook=dump_object_hook)
y = phpserialize.loads(x, object_hook=load_object_hook,
decode_strings=True)
- self.assert_(b'WP_User' in x)
+ self.assertIn(b'WP_User', x, 'WP_User not in x')
self.assertEqual(type(y), type(user))
self.assertEqual(y.username, user.username)
|