Merge lp:~jelmer/brz/testr-fix into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/testr-fix
Merge into: lp:brz
Diff against target: 18 lines (+2/-2)
1 file modified
tools/testr-run.py (+2/-2)
To merge this branch: bzr merge lp:~jelmer/brz/testr-fix
Reviewer Review Type Date Requested Status
Martin Packman Approve
Review via email: mp+373054@code.launchpad.net

Commit message

Port testr-run to Python3.

Description of the change

Port testr-run to Python3.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/testr-run.py'
2--- tools/testr-run.py 2018-06-29 21:21:43 +0000
3+++ tools/testr-run.py 2019-09-21 20:00:11 +0000
4@@ -1,4 +1,4 @@
5-#!/usr/bin/python
6+#!/usr/bin/python3
7
8 import argparse
9 import subprocess
10@@ -38,7 +38,7 @@
11 if args.load_list:
12 py2_tests = []
13 py3_tests = []
14- with open(args.load_list, 'r') as f:
15+ with open(args.load_list, 'rb') as f:
16 all_tests = parse_list(f.read())
17 for testname in all_tests:
18 if testname.startswith("python2."):

Subscribers

People subscribed via source and target branches