mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #19232: Speed up decimal import. Additionally, since _decimal is
self-contained, this change facilitates maintenance and the Python version can be easily imported for experimentation.
This commit is contained in:
parent
082a9b1274
commit
b578f8a1ef
4 changed files with 6404 additions and 6406 deletions
|
@ -4173,9 +4173,7 @@ class CheckAttributes(unittest.TestCase):
|
|||
self.assertEqual(C.__version__, P.__version__)
|
||||
self.assertEqual(C.__libmpdec_version__, P.__libmpdec_version__)
|
||||
|
||||
x = dir(C)
|
||||
y = [s for s in dir(P) if '__' in s or not s.startswith('_')]
|
||||
self.assertEqual(set(x) - set(y), set())
|
||||
self.assertEqual(dir(C), dir(P))
|
||||
|
||||
def test_context_attributes(self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue