From dacef9a3faef2f60b180c1caa8a66064ea5f4fc7 Mon Sep 17 00:00:00 2001 From: David Hait Date: Sun, 18 Nov 2018 17:01:45 -0500 Subject: [PATCH 1/3] Fixed helpers.py for 3.7 PEP479 --- petl/test/helpers.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/petl/test/helpers.py b/petl/test/helpers.py index bca81f64..db02618f 100644 --- a/petl/test/helpers.py +++ b/petl/test/helpers.py @@ -8,11 +8,14 @@ def ieq(expect, actual, cast=None): ie = iter(expect) ia = iter(actual) - for e, a in izip_longest(ie, ia, fillvalue=None): - if cast: - a = cast(a) - eq_(e, a) - + try: + for e, a in izip_longest(ie, ia, fillvalue=None): + if cast: + a = cast(a) + eq_(e, a) + except: + return + def test_iassertequal(): x = ['a', 'b'] From 7847d0de505d41486c22c517e25bafdc2615adb4 Mon Sep 17 00:00:00 2001 From: David Hait Date: Sun, 18 Nov 2018 17:13:18 -0500 Subject: [PATCH 2/3] Added 3.7 to travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 26e3a9d1..30c26870 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ branches: - master language: python python: + - "3.7" - "3.6" - "3.5" - "3.4" From 5df961ae690a5638ae061be7a407f8412e0477fc Mon Sep 17 00:00:00 2001 From: David Hait Date: Sun, 18 Nov 2018 17:18:04 -0500 Subject: [PATCH 3/3] Added 3.7-dev to travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 30c26870..afa49edd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ branches: - master language: python python: - - "3.7" + - "3.7-dev" - "3.6" - "3.5" - "3.4"