Running subunit with python3 fails name 'file' is not defined

Bug #1809809 reported by Quique Llorente
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Quique Llorente

Bug Description

Running subunit2junitxml with python3 fails:
[zuul@fedora-28-rdo-cloud-0000000003 ~]$ subunit2junitxml /home/zuul/tempest/testrepository.subunit --output-to /home/zuul/tempest/tempest.xml
Traceback (most recent call last):
  File "/usr/bin/subunit2junitxml", line 36, in <module>
    protocol_version=2)
  File "/usr/lib/python3.6/site-packages/subunit/filters.py", line 183, in run_filter_script
    input_stream=find_stream(sys.stdin, args))
  File "/usr/lib/python3.6/site-packages/subunit/filters.py", line 146, in filter_by_result
    output_to = file(output_path, 'wb')
NameError: name 'file' is not defined

Installed subunit
python3-subunit-1.3.0-4.fc28.noarch
subunit-filters-1.3.0-4.fc28.noarch

OS: fedora28

Revision history for this message
Quique Llorente (quiquell) wrote :
description: updated
Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
Quique Llorente (quiquell) wrote :

Pull request merged, now we wait for new release of do a patch for the spec file of subunit.

wes hayutin (weshayutin)
Changed in tripleo:
milestone: none → stein-2
Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.