[Zope3-checkins] CVS: StandaloneZConfig/ZConfig/tests - test_datatypes.py:1.13

Fred L. Drake, Jr. fred at zope.com
Mon Apr 12 11:27:06 EDT 2004


Update of /cvs-repository/StandaloneZConfig/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv30650/tests

Modified Files:
	test_datatypes.py 
Log Message:
remove incomplete support for Python 2.1 and 2.2; we simply require 2.3 now


=== StandaloneZConfig/ZConfig/tests/test_datatypes.py 1.12 => 1.13 ===
--- StandaloneZConfig/ZConfig/tests/test_datatypes.py:1.12	Fri Mar 19 11:08:03 2004
+++ StandaloneZConfig/ZConfig/tests/test_datatypes.py	Mon Apr 12 11:27:01 2004
@@ -29,8 +29,6 @@
 
 here = os.path.abspath(here)
 
-StringType = type("")
-
 try:
     unicode
 except NameError:
@@ -123,12 +121,12 @@
     def assert_ascii_equal(self, convert, value):
         v = convert(value)
         self.assertEqual(v, value)
-        self.assert_(isinstance(v, StringType))
+        self.assert_(isinstance(v, str))
         if have_unicode:
             unicode_value = unicode(value)
             v = convert(unicode_value)
             self.assertEqual(v, value)
-            self.assert_(isinstance(v, StringType))
+            self.assert_(isinstance(v, str))
 
     def check_never_namelike(self, convert):
         raises = self.assertRaises




More information about the Zope3-Checkins mailing list