Skip to content

Commit

Permalink
Set TZ environment variables in tests to avoid test errors
Browse files Browse the repository at this point in the history
tzlocal 2.0.0 verifies that the timezone it fouds has the same offset as
the local computer is configured with.If not, it raise the error:

  ValueError: Timezone offset does not match system offset: -7200 !=
-10800. Please, check your config files.

Setting TZ environment variable, this check is no longer done.

Ref: regebro/tzlocal#74
  • Loading branch information
idgserpro committed Dec 4, 2019
1 parent 396a193 commit 70b37e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildout.cfg
Expand Up @@ -44,6 +44,10 @@ eggs = ${instance:eggs}
recipe = zc.recipe.egg
eggs = pylint < 2.0

[test]
initialization +=
os.environ['TZ'] = 'UTC'

[zopepy]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
Expand Down

0 comments on commit 70b37e1

Please sign in to comment.