tvalentyn commented on code in PR #35921:
URL: https://github.com/apache/beam/pull/35921#discussion_r2288238502
##########
sdks/python/conftest.py:
##########
@@ -162,12 +161,16 @@ def pytest_configure(config):
"""
# for the entire test session.
print("\n--- Applying global testcontainers timeout configuration ---")
- waiting_utils.config = SimpleNamespace(
- timeout=int(os.getenv("TC_TIMEOUT", "120")),
- max_tries=int(os.getenv("TC_MAX_TRIES", "120")),
- sleep_time=float(os.getenv("TC_SLEEP_TIME", "1")),
- )
- print("Successfully set waiting utils config")
+ try:
+ from testcontainers.core import waiting_utils
+ waiting_utils.config = SimpleNamespace(
+ timeout=int(os.getenv("TC_TIMEOUT", "120")),
+ max_tries=int(os.getenv("TC_MAX_TRIES", "120")),
+ sleep_time=float(os.getenv("TC_SLEEP_TIME", "1")),
+ )
+ print("Successfully set waiting utils config")
+ except ImportError as e:
Review Comment:
```suggestion
except ModuleNotFoundError as e:
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]