[issue20220] TarFile.list() outputs wrong time

2014-12-06 Thread David Edelsohn

David Edelsohn added the comment:

There now are two zLinux buildbots: zlinux (running SUSE) and zwheezy (running 
Debian).  zlinux (running on SUSE) has the libc problem causing the timezone 
error.  A second buildbot was added, not converting or upgrading the existing 
buildbot.

I still would appreciate the patch from Issue22844 to fix the test_gdb failure 
on the zwheezy buildbot.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-12-04 Thread STINNER Victor

STINNER Victor added the comment:

The bug still occurs on the System Z buildbot:

http://buildbot.python.org/all/builders/System%20Z%20Linux%203.x/builds/2375/steps/test/logs/stdio

==
FAIL: test_list_command_verbose (test.test_tarfile.CommandLineTest)
--
Traceback (most recent call last):
  File 
/mnt/9707/edelsohn/cpython-buildarea/3.x.edelsohn-zlinux-z/build/Lib/test/test_tarfile.py,
 line 1953, in test_list_command_verbose
self.assertEqual(out, expected)
AssertionError: b'?rw[39 chars]-01-05 18:19:43 ustar/conttype \n?rw-r--r-- 
ta[6470 chars]f \n' != b'?rw[39 chars]-01-06 00:19:43 ustar/conttype 
\n?rw-r--r-- ta[6470 chars]f \n'

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-11 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Any other ideas for a reliable method to restore the correct timezone after 
 running a test?

No. The best would be for you to investigate. Perhaps contact some glibc guys.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-11 Thread David Edelsohn

David Edelsohn added the comment:

It doesn't fail on the Debian system.  The Debian system will be successful 
after the test_gdb patch is installed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-07 Thread David Edelsohn

David Edelsohn added the comment:

Any other ideas for a reliable method to restore the correct timezone after 
running a test?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

May be issue6478 is related.

--
nosy: +berker.peksag

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 May be issue6478 is related.

I'm not sure. issue6478 looks like a Python stdlib bug, while this issue looks 
like a libc problem.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

David, could you try the patch in msg230703 and see if it fixes the problem on 
your buildbot?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-06 Thread David Edelsohn

David Edelsohn added the comment:

Unfortunately, the patch does not fix the failures of running test_imaplib 
before test_tarfile or test_datetime.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I can reproduce under Linux using:

$ TZ='America/New_York' ./python -m test -v test_imaplib test_tarfile 
test_datetime

--
nosy: +David.Edelsohn, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

We seem to be bitten by the following bit of glibc (?) oddity:

 os.environ['TZ'] = 'America/New_York'
 time.tzset()
 time.daylight, time.timezone, time.altzone, time.tzname
(1, 18000, 14400, ('EST', 'EDT'))
 os.environ['TZ'] = 'STD-1DST'
 time.tzset()
 time.daylight, time.timezone, time.altzone, time.tzname
(1, -3600, -7200, ('STD', 'DST'))
 os.environ['TZ'] = 'America/New_York'
 time.tzset()
 time.daylight, time.timezone, time.altzone, time.tzname
(1, -3600, -7200, ('STD', 'DST'))

--
nosy: +belopolsky, lemburg
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-11-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

First unsetting TZ seems to fix it:

diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1507,11 +1507,11 @@ def run_with_tz(tz):
 try:
 return func(*args, **kwds)
 finally:
-if orig_tz is None:
-del os.environ['TZ']
-else:
+del os.environ['TZ']
+time.tzset()
+if orig_tz is not None:
 os.environ['TZ'] = orig_tz
-time.tzset()
+time.tzset()
 
 inner.__name__ = func.__name__
 inner.__doc__ = func.__doc__

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20220] TarFile.list() outputs wrong time

2014-01-10 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

TarFile.list() outputs a time exactly 6 hours back from expected.

http://buildbot.python.org/all/builders/System%20Z%20Linux%203.x/builds/1023/steps/test/logs/stdio

==
FAIL: test_list_command_verbose (test.test_tarfile.CommandLineTest)
--
Traceback (most recent call last):
  File 
/home/dje/cpython-buildarea/3.x.edelsohn-zlinux-z/build/Lib/test/test_tarfile.py,
 line 1797, in test_list_command_verbose
self.assertEqual(out, expected)
AssertionError: b'?rw[36 chars]-22 12:34:43 tokenize_tests.txt \n?rw--- 
d[96 chars]t \n' != b'?rw[36 chars]-22 18:34:43 tokenize_tests.txt \n?rw--- 
d[96 chars]t \n'

--

--
components: Library (Lib)
messages: 207878
nosy: lars.gustaebel, serhiy.storchaka
priority: normal
severity: normal
status: open
title: TarFile.list() outputs wrong time
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com