Skip to content

Commit 8730f01

Browse files
committed
Retry ValueError for airflow tests
This change adds a retry to import utils from airflow in case it trys to load util from local module instead of airflow dependency
1 parent 554952e commit 8730f01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integ/test_airflow_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
break
6565
except ParsingError:
6666
pass
67+
except ValueError as ve:
68+
if "Unable to configure formatter" in str(ve):
69+
print(f"Received: {ve}")
70+
else:
71+
raise ve
6772

6873
PYTORCH_MNIST_DIR = os.path.join(DATA_DIR, "pytorch_mnist")
6974
PYTORCH_MNIST_SCRIPT = os.path.join(PYTORCH_MNIST_DIR, "mnist.py")

0 commit comments

Comments
 (0)