[Zope3-checkins] CVS: Zope3/src/zope/context/tests - test_wrapper.py:1.17

Jim Fulton jim@zope.com
Thu, 29 May 2003 14:53:45 -0400


Update of /cvs-repository/Zope3/src/zope/context/tests
In directory cvs.zope.org:/tmp/cvs-serv2990/src/zope/context/tests

Modified Files:
	test_wrapper.py 
Log Message:
Added support for Python 2.3's __reduce_ex__ protocol to wrapper's
pickle-avoidance logic.


=== Zope3/src/zope/context/tests/test_wrapper.py 1.16 => 1.17 ===
--- Zope3/src/zope/context/tests/test_wrapper.py:1.16	Thu May 29 05:06:35 2003
+++ Zope3/src/zope/context/tests/test_wrapper.py	Thu May 29 14:53:44 2003
@@ -532,6 +532,8 @@
         class WrapperWithReduce(self.proxy_class):
             def __reduce__(self):
                 raise CustomPicklingError
+            def __reduce_ex__(self, proto):
+                raise CustomPicklingError
         w = WrapperWithReduce(Thing())
         self.assertRaises(CustomPicklingError, pickle.dumps, w)