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:
Stefan Krah 2014-09-10 17:58:15 +02:00
parent 082a9b1274
commit b578f8a1ef
4 changed files with 6404 additions and 6406 deletions

View file

@ -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):