Commit 4bb6d8a
committed
tests: make test_apscheduler invariant to the TZ environment variable
Make `test_apscheduler` invariant to the `TZ` environment variable,
by specifying the timezone when constructing `AsyncIOScheduler`.
For the purposes of the test, the timezone itself should not matter,
so use UTC.
The `TZ` environment may contain values such as `UTC0` or `GMT+12`,
which is valid but not supported by `tzlocal` that is used by
`apscheduler` behind the scenes.1 parent e6b8cf6 commit 4bb6d8a
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
0 commit comments