From da43793a378d4b80f2b9be4ff53bf2f1686b0382 Mon Sep 17 00:00:00 2001 From: blais Date: Wed, 6 Oct 2021 12:28:59 -0400 Subject: [PATCH] Modified test for numeric types. --- petl/test/test_comparison.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/petl/test/test_comparison.py b/petl/test/test_comparison.py index 94bf3637..cbf041d7 100644 --- a/petl/test/test_comparison.py +++ b/petl/test/test_comparison.py @@ -2,6 +2,7 @@ from datetime import datetime +from decimal import Decimal from petl.test.helpers import eq_ @@ -29,9 +30,9 @@ def test_comparable(): eq_(e, a) # mixed numeric - d = [3., 1, 2.5] + d = [3., 1, 2.5, Decimal('1.5')] a = sorted(d, key=Comparable) - e = [1, 2.5, 3.] + e = [1, Decimal('1.5'), 2.5, 3.] eq_(e, a) # mixed numeric and bool