[Zodb-checkins] CVS: Packages/SFTPGateway/src/ZConfig/tests - test_datatypes.py:1.8

Fred L. Drake, Jr. fred at zope.com
Mon Dec 29 15:43:48 EST 2003


Update of /cvs-repository/Packages/SFTPGateway/src/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv11226/tests

Modified Files:
	test_datatypes.py 
Log Message:
make the "identifier" datatype always convert values to 8-bit strings


=== Packages/SFTPGateway/src/ZConfig/tests/test_datatypes.py 1.7 => 1.8 ===
--- Packages/SFTPGateway/src/ZConfig/tests/test_datatypes.py:1.7	Fri Oct 31 11:14:51 2003
+++ Packages/SFTPGateway/src/ZConfig/tests/test_datatypes.py	Mon Dec 29 15:43:44 2003
@@ -88,7 +88,11 @@
         raises(ValueError, convert, "nan")
 
     def test_datatype_identifier(self):
-        convert = self.types.get("identifier")
+        def convert(value, self=self):
+            value = self.types.get("identifier")(value)
+            self.assert_(isinstance(value, type("")))
+            return value
+
         eq = self.assertEqual
         raises = self.assertRaises
 




More information about the Zodb-checkins mailing list