subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r959968 - /subversion/trunk/subversion/bindings/swig/python/tests/wc.py
Date Fri, 02 Jul 2010 12:41:59 GMT
Author: julianfoad
Date: Fri Jul  2 12:41:58 2010
New Revision: 959968

URL: http://svn.apache.org/viewvc?rev=959968&view=rev
Log:
Fix a Python bindings test failure.

* subversion/bindings/swig/python/tests/wc.py
  (test_get_pristine_copy_path): Test that the returned path yields the
    correct file content, instead of that it is a specific path.

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

Modified: subversion/trunk/subversion/bindings/swig/python/tests/wc.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/wc.py?rev=959968&r1=959967&r2=959968&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/wc.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/wc.py Fri Jul  2 12:41:58 2010
@@ -212,9 +212,11 @@ class SubversionWorkingCopyTestCase(unit
 
   def test_get_pristine_copy_path(self):
       path_to_file = '%s/trunk/README.txt' % self.path
-      path_to_text_base = '%s/trunk/%s/text-base/README.txt.svn-base' % (self.path,
-        wc.get_adm_dir())
-      self.assertEqual(path_to_text_base, wc.get_pristine_copy_path(path_to_file))
+      path_to_text_base = wc.get_pristine_copy_path(path_to_file)
+      text_base = open(path_to_text_base).read()
+      # TODO: This test should modify the working file first, to ensure the
+      # path isn't just the path to the working file.
+      self.assertEqual(text_base, 'A test.\n')
 
   def test_entries_read(self):
       entries = wc.entries_read(self.wc, True)



Mime
View raw message