Skip to content

Commit

Permalink
Change unittest.SkipTest to self.skipTest
Browse files Browse the repository at this point in the history
  • Loading branch information
versae committed Apr 25, 2016
1 parent cf459b5 commit 47b19b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions functional/test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,7 @@ def test_iterator_consumption(self):

def test_single_call(self):
if self.seq is pseq:
raise unittest.SkipTest("pseq doesn't support functions with "
"side-effects")
raise self.skipTest("pseq doesn't support functions with side-effects")
counter = []

def counter_func(x):
Expand All @@ -776,8 +775,7 @@ def test_lineage_repr(self):

def test_cache(self):
if self.seq is pseq:
raise unittest.SkipTest("pseq doesn't support functions with "
"side-effects")
raise self.skipTest("pseq doesn't support functions with side-effects")
calls = []
func = lambda x: calls.append(x)
result = self.seq(1, 2, 3).map(func).cache().map(lambda x: x).to_list()
Expand Down
2 changes: 1 addition & 1 deletion functional/test/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def test_to_sqlite3_tuple(self):

def test_to_sqlite3_namedtuple(self):
if self.seq is pseq:
raise unittest.SkipTest("pseq can't serialize all functions")
raise self.skipTest("pseq can't serialize all functions")
elements = [(1, 'Tom'), (2, 'Jack'), (3, 'Jane'), (4, 'Stephan')]

# test namedtuple with the same order as column
Expand Down

0 comments on commit 47b19b6

Please sign in to comment.