FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-158001: Fix test_ctypes.test_version_var() on s390x by vstinner · Pull Request #158193 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions Lib/test/test_ctypes/test_values.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL