##// END OF EJS Templates
run-tests: be more paranoid about os.system using bytes
Augie Fackler -
r25056:e5f6c6ec default
parent child Browse files
Show More
@@ -1278,8 +1278,11 b' class TestResult(unittest._TextTestResul'
1278 1278 if self._options.nodiff:
1279 1279 pass
1280 1280 elif self._options.view:
1281 os.system("%s %s %s" %
1282 (self._options.view, test.refpath, test.errpath))
1281 v = self._options.view
1282 if sys.version_info[0] == 3:
1283 v = v.encode('utf-8')
1284 os.system(b"%s %s %s" %
1285 (v, test.refpath, test.errpath))
1283 1286 else:
1284 1287 servefail, lines = getdiff(expected, got,
1285 1288 test.refpath, test.errpath)
General Comments 0
You need to be logged in to leave comments. Login now