[New-bugs-announce] [issue17877] Skip test_variable_tzname when the zoneinfo database is missing

Ezio Melotti report at bugs.python.org
Tue Apr 30 11:07:33 CEST 2013


New submission from Ezio Melotti:

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.

----------
components: Tests
files: olson.diff
keywords: patch
messages: 188145
nosy: belopolsky, ezio.melotti, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: Skip test_variable_tzname when the zoneinfo database is missing
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30077/olson.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17877>
_______________________________________


More information about the New-bugs-announce mailing list