subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1389910 - /subversion/trunk/subversion/tests/cmdline/stat_tests.py
Date Tue, 25 Sep 2012 15:17:30 GMT
Author: stsp
Date: Tue Sep 25 15:17:30 2012
New Revision: 1389910

URL: http://svn.apache.org/viewvc?rev=1389910&view=rev
Log:
* subversion/tests/cmdline/stat_tests.py
  (status_ignored_dir): Don't use 'dir' as variable name, since it is
    a special term in python (my editor highlights it). Call it 'path'
    instead. Also, pass the path to 'svn status' just once, not twice.

Modified:
    subversion/trunk/subversion/tests/cmdline/stat_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/stat_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/stat_tests.py?rev=1389910&r1=1389909&r2=1389910&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/stat_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/stat_tests.py Tue Sep 25 15:17:30 2012
@@ -990,9 +990,9 @@ def status_ignored_dir(sbox):
 def status_unversioned_dir(sbox):
   "status on unversioned dir"
   sbox.build(read_only = True, create_wc = False)
-  dir = sbox.wc_dir
+  path = sbox.wc_dir
   svntest.main.safe_rmtree(sbox.wc_dir)
-  os.mkdir(dir)
+  os.mkdir(path)
 
   # Depending on whether you run the tests below a working copy
   # or not, the error message might either be something like
@@ -1001,10 +1001,10 @@ def status_unversioned_dir(sbox):
   # svn: warning: W155010: The node '...copies/stat_tests-19' was not found.
 
   expected_err = "svn: warning: W1550(07|10): .*'.*(/|\\\\)" + \
-                 os.path.basename(dir) + \
+                 os.path.basename(path) + \
                  "' (is not a working copy|was not found)"
   svntest.actions.run_and_verify_svn2(None, [], expected_err, 0,
-                                      "status", dir, dir)
+                                      "status", path)
 
 #----------------------------------------------------------------------
 



Mime
View raw message