Skip to content

Commit

Permalink
fix py2 typeerror bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mrf345 committed Jul 15, 2018
1 parent 9ad02d8 commit 6dd799a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_fg.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_false_app_gtts(client):
try:
gtts(app=app, temporary=200)
except Exception as e2:
assert type(e2) == TypeError
assert type(e2) == AssertionError if V.major == 2 else TypeError
try:
gtts(app=app, tempdir='/')
except Exception as e4:
Expand Down Expand Up @@ -135,7 +135,7 @@ def test_false_inputs_read(client):
try:
eng.read(mouseover=200)
except Exception as e:
assert type(e) == TypeError
assert type(e) == AssertionError if V.major == 2 else TypeError

def test_cleanup_before_exit(client):
""" test cleanup func before exit """
Expand Down

0 comments on commit 6dd799a

Please sign in to comment.