[Jython-checkins] jython: Skip testing os.link where it doesn't exist.
jeff.allen
jython-checkins at python.org
Wed Feb 19 23:48:07 CET 2014
http://hg.python.org/jython/rev/b3d9ae5b6942
changeset: 7185:b3d9ae5b6942
user: Jeff Allen <ja.py at farowl.co.uk>
date: Sat Feb 15 18:30:40 2014 +0000
summary:
Skip testing os.link where it doesn't exist.
files:
Lib/test/test_os_jy.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_os_jy.py b/Lib/test/test_os_jy.py
--- a/Lib/test/test_os_jy.py
+++ b/Lib/test/test_os_jy.py
@@ -22,6 +22,7 @@
os.remove(test_support.TESTFN)
self.assertRaises(OSError, os.utime, test_support.TESTFN, None)
+ @unittest.skipUnless(hasattr(os, 'link'), "os.link not available")
def test_issue1824(self):
os.remove(test_support.TESTFN)
self.assertRaises(OSError, os.link,
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list