[py-svn] r58309 - in py/trunk/py/cmdline: . testing

hpk at codespeak.net hpk at codespeak.net
Sun Sep 21 17:24:49 CEST 2008


Author: hpk
Date: Sun Sep 21 17:24:47 2008
New Revision: 58309

Modified:
   py/trunk/py/cmdline/pysvnwcrevert.py
   py/trunk/py/cmdline/testing/test_generic.py
Log:
fix a test, add a comment (pysvnwcrevert cannot be invoked generically)


Modified: py/trunk/py/cmdline/pysvnwcrevert.py
==============================================================================
--- py/trunk/py/cmdline/pysvnwcrevert.py	(original)
+++ py/trunk/py/cmdline/pysvnwcrevert.py	Sun Sep 21 17:24:47 2008
@@ -44,6 +44,8 @@
             svnwcrevert(p, root)
 
 
+# XXX use optparse, and add a functional test 
+
 def main():
     import sys
     if len(sys.argv) < 2:

Modified: py/trunk/py/cmdline/testing/test_generic.py
==============================================================================
--- py/trunk/py/cmdline/testing/test_generic.py	(original)
+++ py/trunk/py/cmdline/testing/test_generic.py	Sun Sep 21 17:24:47 2008
@@ -47,10 +47,10 @@
        
 def test_script_invocation():
     if iswin32:
-        for script in binwinpath.listdir("py.*"):
-            assert script.ext == ".cmd"
-            yield checkprocess, script 
+        scripts = binwinpath.listdir("py.*")
     else:
-        for script in binpath.listdir("py.*"):
-            yield checkprocess, script 
-
+        scripts = binpath.listdir("py.*")
+    scripts = [x for x in scripts 
+                if not x.basename.startswith("py.svnwcrevert")]
+    for script in scripts:
+        yield checkprocess, script 



More information about the pytest-commit mailing list