We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad677f commit ab5aaa5Copy full SHA for ab5aaa5
Lib/test/test_ctypes/test_loading.py
@@ -100,6 +100,12 @@ def test_load_ordinal_functions(self):
100
101
self.assertRaises(AttributeError, dll.__getitem__, 1234)
102
103
+ @unittest.skipUnless(os.name == "nt", 'Windows-specific test')
104
+ def test_load_without_name_and_with_handle(self):
105
+ handle = ctypes.windll.kernel32._handle
106
+ lib = ctypes.WinDLL(name=None, handle=handle)
107
+ self.assertIs(handle, lib._handle)
108
+
109
@unittest.skipUnless(os.name == "nt", 'Windows-specific test')
110
def test_1703286_A(self):
111
# On winXP 64-bit, advapi32 loads at an address that does
0 commit comments