Skip to content

Commit 8a24fbc

Browse files
committed
Repository tests: remove unised err vars.
1 parent b146910 commit 8a24fbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def test_fail_no_useRepository(self):
295295
resultKey = ResultKey(self.spark, ResultKey.current_milli_time(), key_tags)
296296

297297
# MISSING useRepository()
298-
with self.assertRaises(Py4JError) as err:
298+
with self.assertRaises(Py4JError):
299299
_ = (
300300
self.AnalysisRunner.onData(self.df)
301301
.addAnalyzer(ApproxCountDistinct("b"))
@@ -320,7 +320,7 @@ def test_fail_no_load(self):
320320
)
321321

322322
# MISSING: repository.load()
323-
with self.assertRaises(AttributeError) as err:
323+
with self.assertRaises(AttributeError):
324324
_ = (
325325
repository.before(ResultKey.current_milli_time())
326326
.forAnalyzers([ApproxCountDistinct("b")])

0 commit comments

Comments
 (0)