Blame 00160-disable-test_fs_holes-in-rpm-build.patch

a669008
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a669008
From: David Malcolm <dmalcolm@redhat.com>
a669008
Date: Fri, 19 Jun 2020 16:57:09 +0200
a669008
Subject: [PATCH] 00160: Disable test_fs_holes in RPM build
a669008
a669008
Python 3.3 added os.SEEK_DATA and os.SEEK_HOLE, which may be present in the
a669008
header files in the build chroot, but may not be supported in the running
a669008
kernel, hence we disable this test in an rpm build.
a669008
Adding these was upstream issue http://bugs.python.org/issue10142
a669008
---
a669008
 Lib/test/test_posix.py | 1 +
a669008
 1 file changed, 1 insertion(+)
a669008
a669008
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
a669008
index b229cd3405..21a88ba684 100644
a669008
--- a/Lib/test/test_posix.py
a669008
+++ b/Lib/test/test_posix.py
a669008
@@ -1154,6 +1154,7 @@ class PosixTester(unittest.TestCase):
a8ffdf3
         posix.RTLD_GLOBAL
a8ffdf3
         posix.RTLD_LOCAL
a8ffdf3
 
a8ffdf3
+    @unittest._skipInRpmBuild('running kernel may not match kernel in chroot')
a8ffdf3
     @unittest.skipUnless(hasattr(os, 'SEEK_HOLE'),
a8ffdf3
                          "test needs an OS that reports file holes")
a8ffdf3
     def test_fs_holes(self):