def setUp(self): super(TestDataDrivenSpecsRepo, self).setUp() if type(self) is not TestDataDrivenSpecsRepo: self.sql_context = SQLContext(self.spark_context)