regebro / tzlocal

A Python module that tries to figure out what your local timezone is
MIT License
184 stars 58 forks source link

Tests fail: AssertionError: 'local' != 'Africa/Harare' #62

Closed yurivict closed 5 years ago

yurivict commented 6 years ago

In the FreeBSD port, I get:

======================================================================
FAIL: test_symlink_localtime (tzlocal.tests.TzLocalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/devel/py-tzlocal/work-py27/tzlocal-1.5.1/tzlocal/tests.py", line 69, in test_symlink_localtime
    self.assertEqual(tz.zone, 'Africa/Harare')
AssertionError: 'local' != 'Africa/Harare'

----------------------------------------------------------------------
Ran 10 tests in 0.054s
regebro commented 6 years ago

I think this is the same problem as #53, that this test does not work when run from a distribution, because the file that must be a symlink is not a symlink in that case.