Blame SOURCES/skip-python3.6-tests.patch
|
|
5ee328 |
diff --git a/testing/path/common.py b/testing/path/common.py
|
|
|
5ee328 |
index 274ced4..7945cd7 100644
|
|
|
5ee328 |
--- a/testing/path/common.py
|
|
|
5ee328 |
+++ b/testing/path/common.py
|
|
|
5ee328 |
@@ -444,12 +444,14 @@ class CommonFSTests(object):
|
|
|
5ee328 |
from py._path.common import fspath
|
|
|
5ee328 |
assert fspath(path1) == path1.strpath
|
|
|
5ee328 |
|
|
|
5ee328 |
- @py.test.mark.skip("sys.version_info < (3,6)")
|
|
|
5ee328 |
+ @py.test.mark.skipif(sys.version_info < (3,6),
|
|
|
5ee328 |
+ reason="requires Python 3.6")
|
|
|
5ee328 |
def test_fspath_open(self, path1):
|
|
|
5ee328 |
f = path1.join('opentestfile')
|
|
|
5ee328 |
open(f)
|
|
|
5ee328 |
|
|
|
5ee328 |
- @py.test.mark.skip("sys.version_info < (3,6)")
|
|
|
5ee328 |
+ @py.test.mark.skipif(sys.version_info < (3,6),
|
|
|
5ee328 |
+ reason="requires Python 3.6")
|
|
|
5ee328 |
def test_fspath_fsencode(self, path1):
|
|
|
5ee328 |
from os import fsencode
|
|
|
5ee328 |
assert fsencode(path1) == fsencode(path1.strpath)
|