diff options
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 28fd3c49..66e7fb3f 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -5068,7 +5068,7 @@ def process(filename): return '\n'.join(sorted(text.split('\n'))) sizes = len(open('release.js').read()), len(open('debug%d.js' % debug).read()) print >> sys.stderr, debug, 'sizes', sizes - assert abs(sizes[0] - sizes[1]) < 0.0001*sizes[0] # we can't check on identical output, compilation is not 100% deterministic (order of switch elements, etc.), but size should be ~identical + assert abs(sizes[0] - sizes[1]) < 0.001*sizes[0], sizes # we can't check on identical output, compilation is not 100% deterministic (order of switch elements, etc.), but size should be ~identical print >> sys.stderr, 'debug check %d passed too' % debug try: |