This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: plistlib.py selftest fails
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jvr Nosy List: jackjansen, jvr
Priority: normal Keywords:

Created on 2003-02-07 13:46 by jackjansen, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (5)
msg14498 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-02-07 13:46
Running the plistlib selftest fails for me: it uses xml.utils.iso8601, which apparently isn't part of the standard library.
msg14499 - (view) Author: Just van Rossum (jvr) * (Python triager) Date: 2003-02-07 15:04
Logged In: YES 
user_id=92689

It's part of PyXML. The doc string explains that Date support depends on PyXML. The test is only an onformal test, would you like to formalize it? Or make Date testing optional?
msg14500 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-02-07 15:55
Logged In: YES 
user_id=45365

Ah, I see.

I'd like to turn it into a standard test (to go into test.test_plistlib). Then it can also easily test Date() only if the prerequisites are available.

Are you willing to give this a go? If not reassign to me and I'll get to it eventually.
msg14501 - (view) Author: Just van Rossum (jvr) * (Python triager) Date: 2003-02-07 16:04
Logged In: YES 
user_id=92689

I'd like to give this a go at _some_ point, but not now ;-)

Btw. I see xmlrpclib.py does writing of iso8601 dates by itself, but doesn't read them. It's been a while since I read xml.utils.iso8601.py, but if it's not all that much code, perhaps we should just duplicate it in plistlib.py. I have no great use for it, though, plistlib.py is/was mostly targeted to deal with Info.plist files, in which dates are fairly rare...
msg14502 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-02-25 13:09
Logged In: YES 
user_id=45365

I've added a test_plistlib test, which optionally does the Date() test, it skips it if it can't import xml.utils.iso8601.
History
Date User Action Args
2022-04-10 16:06:37adminsetgithub: 37931
2003-02-07 13:46:46jackjansencreate