mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-93939: Build C extensions without setup.py (GH-94474)
Combines GH-93940, GH-94452, and GH-94433
This commit is contained in:
parent
b03a9e8c8a
commit
81dca70d70
14 changed files with 89 additions and 1506 deletions
|
@ -21,6 +21,11 @@ try:
|
|||
except ImportError:
|
||||
_testcapi = None
|
||||
|
||||
try:
|
||||
import xxsubtype
|
||||
except ImportError:
|
||||
xxsubtype = None
|
||||
|
||||
|
||||
class OperatorsTest(unittest.TestCase):
|
||||
|
||||
|
@ -299,6 +304,7 @@ class OperatorsTest(unittest.TestCase):
|
|||
self.assertEqual(float.__rsub__(3.0, 1), -2.0)
|
||||
|
||||
@support.impl_detail("the module 'xxsubtype' is internal")
|
||||
@unittest.skipIf(xxsubtype is None, "requires xxsubtype module")
|
||||
def test_spam_lists(self):
|
||||
# Testing spamlist operations...
|
||||
import copy, xxsubtype as spam
|
||||
|
@ -343,6 +349,7 @@ class OperatorsTest(unittest.TestCase):
|
|||
self.assertEqual(a.getstate(), 42)
|
||||
|
||||
@support.impl_detail("the module 'xxsubtype' is internal")
|
||||
@unittest.skipIf(xxsubtype is None, "requires xxsubtype module")
|
||||
def test_spam_dicts(self):
|
||||
# Testing spamdict operations...
|
||||
import copy, xxsubtype as spam
|
||||
|
@ -1600,6 +1607,7 @@ order (MRO) for bases """
|
|||
self.assertAlmostEqual(gettotalrefcount() - refs_before, 0, delta=10)
|
||||
|
||||
@support.impl_detail("the module 'xxsubtype' is internal")
|
||||
@unittest.skipIf(xxsubtype is None, "requires xxsubtype module")
|
||||
def test_classmethods_in_c(self):
|
||||
# Testing C-based class methods...
|
||||
import xxsubtype as spam
|
||||
|
@ -1683,6 +1691,7 @@ order (MRO) for bases """
|
|||
self.assertAlmostEqual(gettotalrefcount() - refs_before, 0, delta=10)
|
||||
|
||||
@support.impl_detail("the module 'xxsubtype' is internal")
|
||||
@unittest.skipIf(xxsubtype is None, "requires xxsubtype module")
|
||||
def test_staticmethods_in_c(self):
|
||||
# Testing C-based static methods...
|
||||
import xxsubtype as spam
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue