[svn r58309] fix a test, add a comment (pysvnwcrevert cannot be invoked generically)
--HG-- branch : trunk
This commit is contained in:
parent
cc10d84088
commit
6cdd88eef6
|
@ -44,6 +44,8 @@ def svnwcrevert(path, root=None, precious=[]):
|
||||||
svnwcrevert(p, root)
|
svnwcrevert(p, root)
|
||||||
|
|
||||||
|
|
||||||
|
# XXX use optparse, and add a functional test
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
import sys
|
import sys
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
|
|
|
@ -47,10 +47,10 @@ def test_cmdline_namespace():
|
||||||
|
|
||||||
def test_script_invocation():
|
def test_script_invocation():
|
||||||
if iswin32:
|
if iswin32:
|
||||||
for script in binwinpath.listdir("py.*"):
|
scripts = binwinpath.listdir("py.*")
|
||||||
assert script.ext == ".cmd"
|
|
||||||
yield checkprocess, script
|
|
||||||
else:
|
else:
|
||||||
for script in binpath.listdir("py.*"):
|
scripts = binpath.listdir("py.*")
|
||||||
yield checkprocess, script
|
scripts = [x for x in scripts
|
||||||
|
if not x.basename.startswith("py.svnwcrevert")]
|
||||||
|
for script in scripts:
|
||||||
|
yield checkprocess, script
|
||||||
|
|
Loading…
Reference in New Issue