[Zope-Checkins] CVS: Zope/lib/python/Products/ExternalMethod/tests/Extensions - Test.py:1.2

Jim Fulton jim@zope.com
Mon, 22 Apr 2002 17:54:51 -0400


Update of /cvs-repository/Zope/lib/python/Products/ExternalMethod/tests/Extensions
In directory cvs.zope.org:/tmp/cvs-serv9296/tests/Extensions

Added Files:
	Test.py 
Log Message:
Fixed bug: External methods pickled function code and globals, which
was really stupid. It caused problems because func_defaults might
be non-unpicklable (e.g. includes somemodule.rfind).

Added simple unit test to allow me to fix the bug.



=== Zope/lib/python/Products/ExternalMethod/tests/Extensions/Test.py 1.1 => 1.2 ===
+from math import sqrt
+
+def testf(arg1, sqrt = sqrt):
+    return sqrt(arg1)
+
+
+