output to file fails under Python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subunit |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I was trying to produce jUnit xml out of subunit stream.
Running "subunit2junitxml -o output.xml" with Python 3.5 (Ubuntu Xenial) fails with this traceback:
Traceback (most recent call last):
File "/home/
protocol_
File "/home/
input_
File "/home/
output_to = file(output_path, 'wb')
NameError: name 'file' is not defined
which is due to 'file' type was removed from Python3.
I suspect any other scripts that can write output to file are affected as well.
Obvious workaround is to use stdout to file redirection, but I still think it should be fixed since Python3 support is claimed in trove specifier.
Changed in subunit: | |
status: | New → Fix Released |