subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdo...@apache.org
Subject svn commit: r1392077 - /subversion/trunk/subversion/bindings/swig/python/tests/core.py
Date Sun, 30 Sep 2012 17:17:27 GMT
Author: rdonch
Date: Sun Sep 30 17:17:26 2012
New Revision: 1392077

URL: http://svn.apache.org/viewvc?rev=1392077&view=rev
Log:
* subversion/bindings/swig/python/tests/core.py:
  (SubversionCoreTestCase.test_config_enumerate2),
  (SubversionCoreTestCase.test_config_enumerate_sections2):
    Use assert_ instead of assertIn, as the latter was not yet invented in
    Python 2.4.


Modified:
    subversion/trunk/subversion/bindings/swig/python/tests/core.py

Modified: subversion/trunk/subversion/bindings/swig/python/tests/core.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/core.py?rev=1392077&r1=1392076&r2=1392077&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/core.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/core.py Sun Sep 30 17:17:26 2012
@@ -125,7 +125,7 @@ class SubversionCoreTestCase(unittest.Te
 
     self.assertEqual(len(received_entries), 2)
     for (name, value) in received_entries.iteritems():
-      self.assertIn(name, entries)
+      self.assert_(name in entries)
       self.assertEqual(value, entries[name])
 
   def test_config_enumerate2_exception(self):
@@ -156,7 +156,7 @@ class SubversionCoreTestCase(unittest.Te
 
     self.assertEqual(len(received_sections), 2)
     for section in received_sections:
-      self.assertIn(section, sections)
+      self.assert_(section in sections)
 
   def test_config_enumerate_sections2_exception(self):
     cfg = svn.core.svn_config_create(False)



Mime
View raw message