summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2014-09-10 15:58:15 (GMT)
committerStefan Krah <skrah@bytereef.org>2014-09-10 15:58:15 (GMT)
commitb578f8a1efdb8ad5b6671427d3a49f4eef5e5b70 (patch)
tree4406bd8c0c25536ea07bdac4712c05766e40ab5c /Lib/test/test_decimal.py
parent082a9b1274ae61011e97b5c7e424e0e438114123 (diff)
downloadcpython-b578f8a1efdb8ad5b6671427d3a49f4eef5e5b70.zip
cpython-b578f8a1efdb8ad5b6671427d3a49f4eef5e5b70.tar.gz
cpython-b578f8a1efdb8ad5b6671427d3a49f4eef5e5b70.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index be60887..0166c69 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -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):