another couple of checks on jython, still some problems
--HG-- branch : trunk
This commit is contained in:
@@ -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)) == []
|
||||
|
||||
@@ -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()")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user