[Python-checkins] r45238 - python/trunk/Lib/test/test_contextlib.py (original) (raw)

tim.peters python-checkins at python.org
Mon Apr 10 22:25:47 CEST 2006


Author: tim.peters Date: Mon Apr 10 22:25:47 2006 New Revision: 45238

Modified: python/trunk/Lib/test/test_contextlib.py Log: DecimalContextTestCase: this permanently changed the default decimal context, causing test_tokenize to fail if it ran after test_contextlib. Changed to restore the decimal context in effect at the test's start.

Modified: python/trunk/Lib/test/test_contextlib.py

--- python/trunk/Lib/test/test_contextlib.py (original) +++ python/trunk/Lib/test/test_contextlib.py Mon Apr 10 22:25:47 2006 @@ -313,20 +313,24 @@

 def testBasic(self):
     ctx = decimal.getcontext()

This is needed to make the test actually run under regrtest.py!



More information about the Python-checkins mailing list