Skip to content

Commit

Permalink
don't hide errors in test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Frens Jan Rumph committed Jun 28, 2016
1 parent 02ad8ec commit 61cbedd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/pyspark_cassandra/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ def test_93(self):
# unittest.TextTestRunner().run(suite)
finally:
# stop the spark context and cassandra session
CassandraTestCase.sc.stop()
CassandraTestCase.session.shutdown()
# stop the spark context and cassandra session
if hasattr(CassandraTestCase, 'sc'):
CassandraTestCase.sc.stop()
if hasattr(CassandraTestCase, 'session'):
CassandraTestCase.session.shutdown()

0 comments on commit 61cbedd

Please sign in to comment.