From 3d35b93fc0f8982dc94d3e459f0d3dca3fdda541 Mon Sep 17 00:00:00 2001 From: Luis Diaz Mas Date: Tue, 31 Jul 2018 17:54:20 +0200 Subject: [PATCH] Skip test 1054 unless timezone is UTC --- tests/bugfixes/redmine/test_issue_1054.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/bugfixes/redmine/test_issue_1054.py b/tests/bugfixes/redmine/test_issue_1054.py index 20683654..cfc6d678 100644 --- a/tests/bugfixes/redmine/test_issue_1054.py +++ b/tests/bugfixes/redmine/test_issue_1054.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- +import unittest +import os import system_tests +@unittest.skipUnless(os.getenv('TZ') == 'UTC', "Testcase only works with the timezone set to UTC") class Exiv2jsonRecursiveJsonTreeWithXMP(metaclass=system_tests.CaseMeta): url = "http://dev.exiv2.org/issues/1054"