Issue 17877: Skip test_variable_tzname when the zoneinfo database is missing (original) (raw)
If the Olson/zoneinfo/tz database is missing, test_variable_tzname fails:
[1/1] test_email Warning -- sys.path was modified by test_email test test_email failed -- Traceback (most recent call last): File "/usr/local/lib/python3.3/test/support.py", line 1311, in inner return func(*args, **kwds) File "/usr/local/lib/python3.3/test/test_email/test_utils.py", line 133, in test_variable_tzname self.assertEqual(t1.tzname(), 'MSK') AssertionError: 'Europe' != 'MSK'
- Europe
- MSK
The attached patch checks if /usr/share/zoneinfo or /usr/lib/zoneinfo exist, and skip the test if they don't. This test is already skipped on Windows.