Skip to content

Commit

Permalink
fixup test for py2
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnboy authored Aug 1, 2019
1 parent bc70d53 commit 6edc918
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def test_is_subset_of_failure_single_item_superset():
assert_that(['a','b','c']).is_subset_of(['x'])
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).contains("to be subset of <{'x'}>")
if sys.version_info[0] == 3:
assert_that(str(ex)).contains("to be subset of <{'x'}>")
assert_that(str(ex)).contains("but <'a', 'b', 'c'> were missing.")

def test_is_subset_of_failure_array():
try:
Expand Down

0 comments on commit 6edc918

Please sign in to comment.