Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

Commit

Permalink
fix #26: validation of decimal facets
Browse files Browse the repository at this point in the history
An inappropriate tearDown that changed the decimal context to a
non-default value in an unrelated test caused test-trac-0091 to truncate
results, resulting in failure to discover a too-precise result, but only
when run in the suite that first ran test-decimal.

Likely this only ever worked because in other versions test-trac-0091
was run first.
  • Loading branch information
pabigot committed Aug 30, 2015
1 parent 6deaa4e commit d4bdd5a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/datatypes/test-decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
from pyxb.exceptions_ import *

class Test_decimal (unittest.TestCase):
def tearDown (self):
decimal.setcontext(decimal.BasicContext)

def assertAlmostEqual (self, v1, v2, *args, **kw):
if (isinstance(v1, Decimal)
or isinstance(v2, Decimal)):
Expand Down

0 comments on commit d4bdd5a

Please sign in to comment.