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

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