Skip to content

Commit 41293bf

Browse files
committed
Fix FLOAT_CMP to include the sign of the number looked at.
1 parent 1974eb3 commit 41293bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎astropy/tests/output_checker.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self):
5454

5555
exp = r'(?:e[+-]?\d+)'
5656

57-
got_floats = r'(\d+\.\d*%s?|\.\d+%s?|\d+%s)' % (exp, exp, exp)
57+
got_floats = r'([+-]?\d+\.\d*%s?|[+-]?\.\d+%s?|[+-]?\d+%s)' % (exp, exp, exp)
5858

5959
# floats in the 'want' string may contain ellipses
6060
want_floats = got_floats + r'(\.{3})?'

0 commit comments

Comments
 (0)