from __future__ import print_function, unicode_literals
import json
-import sys, os, os.path as path
+import sys, os
import subprocess
from functools import partial
from optparse import OptionParser
+from os import path
from subprocess import PIPE
def __eq__(self, other):
return repr(self) == repr(other)
- def __ne__(self, other):
- return repr(self) != repr(other)
-
- def __cmp__(self, other):
- return cmp(repr(self), repr(other))
-
class TestInfo(object):
""" Object representing a tests info.json, in a more convenient form. """
""" Run tests """
tests = opts.selection
- if not len(tests):
+ if not tests:
raise RunnerError("No tests to run")
run_test = { "console": run_test_console,