Skip to content

Commit d82e0bf

Browse files
authored
gh-93839: Move Lib/ctypes/test/ to Lib/test/test_ctypes/ (#94041)
* Move Lib/ctypes/test/ to Lib/test/test_ctypes/ * Remove Lib/test/test_ctypes.py * Update imports and build system.
1 parent 889772f commit d82e0bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+83
-93
lines changed

Lib/ctypes/test/__main__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

Lib/test/leakers/test_ctypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Taken from Lib/ctypes/test/test_keeprefs.py, PointerToStructure.test().
2+
# Taken from Lib/test/test_ctypes/test_keeprefs.py, PointerToStructure.test().
33

44
from ctypes import Structure, c_int, POINTER
55
import gc

Lib/test/test_ctypes.py

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.

Lib/test/test_ctypes/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from test.test_ctypes import load_tests
2+
import unittest
3+
4+
unittest.main()
File renamed without changes.

Lib/ctypes/test/test_arrays.py renamed to Lib/test/test_ctypes/test_arrays.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
from ctypes import *
55

6-
from ctypes.test import need_symbol
6+
from test.test_ctypes import need_symbol
77

88
formats = "bBhHiIlLqQfd"
99

Lib/ctypes/test/test_as_parameter.py renamed to Lib/test/test_ctypes/test_as_parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22
from ctypes import *
3-
from ctypes.test import need_symbol
3+
from test.test_ctypes import need_symbol
44
import _ctypes_test
55

66
dll = CDLL(_ctypes_test.__file__)

Lib/ctypes/test/test_bitfields.py renamed to Lib/test/test_ctypes/test_bitfields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from ctypes import *
2-
from ctypes.test import need_symbol
2+
from test.test_ctypes import need_symbol
33
from test import support
44
import unittest
55
import os

0 commit comments

Comments
 (0)