Opened 6 years ago

Closed 6 years ago

#9723 closed (fixed)

r9527 (compressed fixtures) breaks loaddata for some Pythons

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

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 AdamG 6 years ago.
Patch to catch the ImportError if bz2 is not compiled in

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by AdamG

Patch to catch the ImportError if bz2 is not compiled in

comment:1 Changed 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(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