[issue7879] Too narrow platform check in test_datetime

Andrej Krpic report at bugs.python.org
Sun Feb 7 23:16:35 CET 2010


New submission from Andrej Krpic <akrpic77 at gmail.com>:

Windows doesn't accept negative timestamps (stated in the comment), yet checks is made against os.name instead of sys.platform.

patch fixes that, and also enables windows ce to pass on this test.

I think this is better than having os.name in ("nt", "ce").

----------
components: Tests
files: test_datetime_win32_check.patch
keywords: patch
messages: 99026
nosy: akrpic77
severity: normal
status: open
title: Too narrow platform check in test_datetime
versions: Python 2.7
Added file: http://bugs.python.org/file16171/test_datetime_win32_check.patch

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


More information about the Python-bugs-list mailing list