diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-02-23 15:35:30 -0800 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-02-23 15:35:30 -0800 |
| commit | c27c19ea316b343f1623a7c1bf21c53cd426603b (patch) | |
| tree | 38f67760fa96b5df65c45ad12eeb45b70ea3f444 | |
| parent | 5e2f82b1487b8f8e43539d0c71466fbbfed23121 (diff) | |
| download | nova-c27c19ea316b343f1623a7c1bf21c53cd426603b.tar.gz nova-c27c19ea316b343f1623a7c1bf21c53cd426603b.tar.xz nova-c27c19ea316b343f1623a7c1bf21c53cd426603b.zip | |
fix pep8
| -rw-r--r-- | run_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py index 2c04a0641..eef0120bc 100644 --- a/run_tests.py +++ b/run_tests.py @@ -87,7 +87,7 @@ class _AnsiColorizer(object): coloring terminal output using this method. Returns False otherwise. """ if not stream.isatty(): - return False # auto color only on TTYs + return False # auto color only on TTYs try: import curses except ImportError: @@ -180,6 +180,7 @@ class _NullColorizer(object): def write(self, text, color): self.stream.write(text) + class NovaTestResult(result.TextTestResult): def __init__(self, *args, **kw): result.TextTestResult.__init__(self, *args, **kw) @@ -276,7 +277,7 @@ class NovaTestRunner(core.TextTestRunner): if __name__ == '__main__': logging.setup() - testdir = os.path.abspath(os.path.join("nova","tests")) + testdir = os.path.abspath(os.path.join("nova", "tests")) testdb = os.path.join(testdir, "tests.sqlite") if os.path.exists(testdb): os.unlink(testdb) |
