python / cpython

The Python programming language
https://www.python.org/
Other
60.91k stars 29.4k forks source link

MacOS9: test_strptime fails #38916

Closed jackjansen closed 20 years ago

jackjansen commented 20 years ago
BPO 776205
Nosy @jackjansen

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = 'https://github.com/jackjansen' closed_at = created_at = labels = ['OS-mac'] title = 'MacOS9: test_strptime fails' updated_at = user = 'https://github.com/jackjansen' ``` bugs.python.org fields: ```python activity = actor = 'jackjansen' assignee = 'jackjansen' closed = True closed_date = None closer = None components = ['macOS'] creation = creator = 'jackjansen' dependencies = [] files = [] hgrepos = [] issue_num = 776205 keywords = [] message_count = 2.0 messages = ['17300', '17301'] nosy_count = 1.0 nosy_names = ['jackjansen'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue776205' versions = [] ```

jackjansen commented 20 years ago

Test_strptime fails in MacPython-OS9:

test test_strptime failed -- Traceback (most recent call last):
  File 
"Sap:ufs:jack:SWDev:MacPython:Lib:test:test_strptime.py", 
line 308, in test_timezone
    "timezone check failed; '%s' -> %s != %s" %
  File "Sap:ufs:jack:SWDev:MacPython:Lib:unittest.py", line 
268, in failUnless
    if not expr: raise self.failureException, msg
AssertionError: timezone check failed; '' -> 0 != 1

Probably this specific test should be skipped on the mac, which has no useful timezone information.

jackjansen commented 20 years ago

Logged In: YES user_id=45365

Fixed by skipping the timezone test on MacOS9. Timezone support is non-existent anyway.