another couple of checks on jython, still some problems

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-04-23 19:05:22 +02:00
parent 221ac3e466
commit b3a05b545e
9 changed files with 25 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ class CommonFSTests(object):
assert not l1.relto(l2)
assert not l2.relto(l1)
#@py.test.mark.xfail("sys.platform.startswith('java')")
@py.test.mark.xfail("sys.platform.startswith('java')")
def test_listdir(self, path1):
l = path1.listdir()
assert path1.join('sampledir') in l
@@ -178,7 +178,7 @@ class CommonFSTests(object):
assert "sampledir" in l
assert "otherdir" in l
#@py.test.mark.xfail("sys.platform.startswith('java')")
@py.test.mark.xfail("sys.platform.startswith('java')")
def test_visit_ignore(self, path1):
p = path1.join('nonexisting')
assert list(p.visit(ignore=py.error.ENOENT)) == []

View File

@@ -13,6 +13,12 @@ class TestSvnURLCommandPath(CommonSvnTests):
def test_load(self, path1):
super(TestSvnURLCommandPath, self).test_load(path1)
# the following two work on jython but not in local/svnwc
def test_listdir(self, path1):
super(TestSvnURLCommandPath, self).test_listdir(path1)
def test_visit_ignore(self, path1):
super(TestSvnURLCommandPath, self).test_visit_ignore(path1)
def test_svnurl_needs_arg(self, path1):
py.test.raises(TypeError, "py.path.svnurl()")