Skip to content

Commit

Permalink
Merge 5df961a into 9372b2a
Browse files Browse the repository at this point in the history
  • Loading branch information
dhait committed Nov 18, 2018
2 parents 9372b2a + 5df961a commit cea60f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ branches:
- master
language: python
python:
- "3.7-dev"
- "3.6"
- "3.5"
- "3.4"
Expand Down
13 changes: 8 additions & 5 deletions petl/test/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit cea60f9

Please sign in to comment.