diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
commit | 38fde63f74091af1f6a0d485474769bb6b4f17ce (patch) | |
tree | 1317a1fa2ef61c710ff5c653f43c0af8bb164ca6 /debian/patches/test_fsync-eatmydata | |
download | pypy-debian.tar.gz |
Import pypy (7.2.0+dfsg-1)debian/7.2.0+dfsg-1debian
Diffstat (limited to 'debian/patches/test_fsync-eatmydata')
-rw-r--r-- | debian/patches/test_fsync-eatmydata | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/test_fsync-eatmydata b/debian/patches/test_fsync-eatmydata new file mode 100644 index 0000000..f68c307 --- /dev/null +++ b/debian/patches/test_fsync-eatmydata @@ -0,0 +1,24 @@ +From: Stefano Rivera <stefanor@debian.org> +Date: Sat, 7 Oct 2017 09:38:57 +0200 +Subject: Skip fsync tests when building with eatmydata + +Author: Stefano Rivera <stefanor@debian.org> +Forwarded: not-needed +Last-Update: 2012-02-06 +--- + lib-python/2.7/test/test_os.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib-python/2.7/test/test_os.py b/lib-python/2.7/test/test_os.py +index 6a06340..c4be901 100644 +--- a/lib-python/2.7/test/test_os.py ++++ b/lib-python/2.7/test/test_os.py +@@ -654,6 +654,8 @@ class TestInvalidFD(unittest.TestCase): + except OSError as e: + self.assertEqual(e.errno, errno.EBADF) + else: ++ if f.__name__.endswith('sync'): ++ return # eatmydata won't raise an OSError + self.fail("%r didn't raise an OSError with a bad file descriptor" + % f) + |