Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/test/test_ctypes/test_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys
import unittest
from ctypes import (Structure, CDLL, POINTER, pythonapi,
c_ubyte, c_char_p, c_int)
c_ubyte, c_char_p, c_int, c_ulong)
from test import support
from test.support import import_helper, thread_unsafe

Expand Down Expand Up @@ -77,7 +77,7 @@ def test_version_var(self):
# This test accesses the Py_Version integer, which is
# exported by the Python dll and should match the sys.hexversion value

version = c_int.in_dll(pythonapi, "Py_Version").value
version = c_ulong.in_dll(pythonapi, "Py_Version").value
self.assertEqual(version, sys.hexversion)

@thread_unsafe('overrides frozen modules')
Expand Down
Loading