Treat unittest SkipTest exception as pass instead of as failure (#14847)
This commit is contained in:
@@ -71,6 +71,7 @@ from typing import (
|
|||||||
TypeVar,
|
TypeVar,
|
||||||
Union,
|
Union,
|
||||||
)
|
)
|
||||||
|
from unittest import SkipTest
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@@ -2540,6 +2541,9 @@ def retry(
|
|||||||
for try_index in itertools.count():
|
for try_index in itertools.count():
|
||||||
try:
|
try:
|
||||||
return fn()
|
return fn()
|
||||||
|
except SkipTest:
|
||||||
|
# Do NOT retry skipped tests - used in CI and unittest
|
||||||
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user