commit - 3382df6f682dd7ab880ab82a7479e4f3958efbd4
commit + ed35621c6ea2272870fc27e6ecd4d3de22cf0cb1
blob - b4dadf780eef9b16f07f5dfcf9c4b43c6d871cc3
blob + 23273c859f66d43c17e206e48d42d25df01342bc
--- rules/python/flakiness/tz_assumption.yaml
+++ rules/python/flakiness/tz_assumption.yaml
rules:
-- id: tz_assumption
- patterns:
- - pattern-either:
- - pattern: |
- time.tzset(...)
- - pattern: |
- pytz.timezone(...)
- message: |
- Does your test requests for the current time? In which timezone? You should not
- make assumptions that your test will always run in the same timezone as
- developed.
- languages:
- - python
- severity: WARNING
+ - id: tz_assumption
+ patterns:
+ - pattern-either:
+ - pattern: time.tzset(...)
+ - pattern: pytz.timezone(...)
+ message: |
+ Does your test requests for the current time? In which timezone? You
+ should not make assumptions that your test will always run in the same
+ timezone as developed.
+ languages:
+ - python
+ severity: WARNING