From 055663b79da0b24fbbf5ee1e7fdebf40cb811766 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Wed, 9 Dec 2015 03:43:59 +0100 Subject: [PATCH] Another str -> repr change affecting a float. --- testfuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testfuncs.py b/testfuncs.py index 6215a98..2a3920e 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -49,7 +49,7 @@ def reallyequal(actual, expected, tol): # Deal with floats (edge cases, tolerance) if isinstance(actual, float): if actual == 0.0: - return str(actual) == str(expected) + return repr(actual) == repr(expected) elif math.isnan(actual): return math.isnan(expected) return abs(actual - expected) <= tol