summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-22 18:10:41 (GMT)
committerGitHub <noreply@github.com>2024-01-22 18:10:41 (GMT)
commited567c1e1f27df507ca45478bdf9143b21ed06e1 (patch)
treed69e63f35a85eb7b80c62f64a2ee647716594f95 /Lib/test
parent4bbb9f6f29e08d88ebc4965165b8aa1aec47f427 (diff)
downloadcpython-ed567c1e1f27df507ca45478bdf9143b21ed06e1.zip
cpython-ed567c1e1f27df507ca45478bdf9143b21ed06e1.tar.gz
cpython-ed567c1e1f27df507ca45478bdf9143b21ed06e1.tar.bz2
[3.12] gh-114257: Ignore the FileNotFound error in ctypes.util._is_elf() (GH-114394) (GH-114444)
(cherry picked from commit 7fc51c3f6b7b13f88480557ff14bdb1c049f9a37) Co-authored-by: AN Long <aisk@users.noreply.github.com>
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ctypes/test_find.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ctypes/test_find.py b/Lib/test/test_ctypes/test_find.py
index 1ff9d01..a41e949 100644
--- a/Lib/test/test_ctypes/test_find.py
+++ b/Lib/test/test_ctypes/test_find.py
@@ -122,6 +122,9 @@ class FindLibraryLinux(unittest.TestCase):
unittest.mock.patch("ctypes.util._findLib_gcc", lambda *args: None):
self.assertNotEqual(find_library('c'), None)
+ def test_gh114257(self):
+ self.assertIsNone(find_library("libc"))
+
if __name__ == "__main__":
unittest.main()