Opened 15 years ago

Closed 15 years ago

#9723 closed (fixed)

r9527 (compressed fixtures) breaks loaddata for some Pythons

Reported by: Adam Gomaa Owned by: nobody
Component: Core (Serialization) Version: 1.0
Severity: Keywords: fixtures
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The bz2 stdlib module is optional, and not compiled in all Pythons. r9527 breaks loaddata for those Pythons by having a top-level import for the module. Patch against trunk attached to fix the issue. The patch is untested, as I don't have a Python installation without bz2 to test with.

Attachments (1)

fix-r9527-loaddata-bz2.patch (859 bytes ) - added by Adam Gomaa 15 years ago.
Patch to catch the ImportError if bz2 is not compiled in

Download all attachments as: .zip

Change History (2)

by Adam Gomaa, 15 years ago

Patch to catch the ImportError if bz2 is not compiled in

comment:1 by Malcolm Tredinnick, 15 years ago

Resolution: fixed
Status: newclosed

(In [9537]) Fixed #9723 -- Not all Python distributions contain the bz2 module, so we need to allow for that. Based on a patch from AdamG.

Note: See TracTickets for help on using tickets.
Back to Top