Skip to content

Commit d84144c

Browse files
committed
respect error type
1 parent 9950c03 commit d84144c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/integrations/spark/test_spark.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ def stageId(self): # noqa: N802
295295
def name(self):
296296
return "run-job"
297297

298+
def attemptId(self):
299+
raise Py4JJavaError
300+
298301
def attemptNumber(self): # noqa: N802
299302
return 14
300303

@@ -326,6 +329,12 @@ def stageId(self): # noqa: N802
326329
def name(self):
327330
return "run-job"
328331

332+
def attemptId(self):
333+
raise Py4JJavaError
334+
335+
def attemptNumber(self):
336+
raise Py4JJavaError
337+
329338
class MockStageSubmitted:
330339
def stageInfo(self): # noqa: N802
331340
stageinf = StageInfo()

0 commit comments

Comments
 (0)