Skip to content

Commit

Permalink
fixed py2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed May 24, 2016
1 parent d6c7537 commit 8271283
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import absolute_import
from __future__ import unicode_literals

import six
import pytest
from jsontableschema_pandas.utils import force_list

Expand All @@ -14,6 +15,6 @@ def test_force_list():


def test_force_list_error():
with pytest.raises(TypeError) as excinfo:
with pytest.raises(TypeError) as exception:
force_list('a', int)
assert str(excinfo.value) == "'a' is not one of list, int"
assert isinstance(exception, TypeError)

0 comments on commit 8271283

Please sign in to comment.