diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-09-29 04:40:56 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-09-29 04:40:56 (GMT) |
commit | 6a8e1ea80c2f2e8334b659f208fa3798219aebea (patch) | |
tree | cf8bb371998fbdd93c1e208bc5442fa419c607a6 /Lib | |
parent | 3b7cfd4ffe4bfa780a4090fb0373e2e1fb8a4ca7 (diff) | |
parent | c49b4d8ef392678b2a55deedb7682d3f5ab9c68b (diff) | |
download | cpython-6a8e1ea80c2f2e8334b659f208fa3798219aebea.zip cpython-6a8e1ea80c2f2e8334b659f208fa3798219aebea.tar.gz cpython-6a8e1ea80c2f2e8334b659f208fa3798219aebea.tar.bz2 |
Merge test cleanup from 3.5 into 3.6
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/test/test_find.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/Lib/ctypes/test/test_find.py b/Lib/ctypes/test/test_find.py index c7205f5..b99fdcb 100644 --- a/Lib/ctypes/test/test_find.py +++ b/Lib/ctypes/test/test_find.py @@ -1,5 +1,5 @@ import unittest -import os, os.path +import os.path import sys import test.support from ctypes import * @@ -112,28 +112,5 @@ class LibPathFindTest(unittest.TestCase): self.assertEqual(find_library(libname), 'lib%s.so' % libname) -# On platforms where the default shared library suffix is '.so', -# at least some libraries can be loaded as attributes of the cdll -# object, since ctypes now tries loading the lib again -# with '.so' appended of the first try fails. -# -# Won't work for libc, unfortunately. OTOH, it isn't -# needed for libc since this is already mapped into the current -# process (?) -# -# On MAC OSX, it won't work either, because dlopen() needs a full path, -# and the default suffix is either none or '.dylib'. -@unittest.skip('test disabled') -@unittest.skipUnless(os.name=="posix" and sys.platform != "darwin", - 'test not suitable for this platform') -class LoadLibs(unittest.TestCase): - def test_libm(self): - import math - libm = cdll.libm - sqrt = libm.sqrt - sqrt.argtypes = (c_double,) - sqrt.restype = c_double - self.assertEqual(sqrt(2), math.sqrt(2)) - if __name__ == "__main__": unittest.main() |