[CMF-checkins] CVS: CMF/CMFCore/tests - testCookieCrumbler.py:1.2

Shane Hathaway shane at zope.com
Tue Feb 10 10:54:28 EST 2004


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv14121/CMFCore/tests

Modified Files:
	testCookieCrumbler.py 
Log Message:
Fixed compatibility with Python 2.1.


=== CMF/CMFCore/tests/testCookieCrumbler.py 1.1 => 1.2 ===
--- CMF/CMFCore/tests/testCookieCrumbler.py:1.1	Thu Feb  5 10:39:11 2004
+++ CMF/CMFCore/tests/testCookieCrumbler.py	Tue Feb 10 10:54:27 2004
@@ -300,7 +300,7 @@
 
     def testCreateForms(self):
         # Verify the factory creates the login forms.
-        if 'CMFCore' in CookieCrumbler.__module__:
+        if CookieCrumbler.__module__.find('CMFCore') >= 0:
             # This test is disabled in CMFCore.
             return
         self.root._delObject('cookie_authentication')




More information about the CMF-checkins mailing list