[tor-commits] [stem/master] Failure messages inverted for starting tor in a test
atagar at torproject.org
atagar at torproject.org
Tue Feb 17 06:22:31 UTC 2015
commit 273a45133239e60027337a0dc7203fc744cb2307
Author: Damian Johnson <atagar at torproject.org>
Date: Mon Feb 16 22:23:33 2015 -0800
Failure messages inverted for starting tor in a test
---
test/integ/process.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/integ/process.py b/test/integ/process.py
index ca76a5e..6c6be21 100644
--- a/test/integ/process.py
+++ b/test/integ/process.py
@@ -434,8 +434,8 @@ class TestProcess(unittest.TestCase):
exit_status = tor_process.poll()
if exit_status and not expect_failure:
- self.fail("Didn't expect tor to be able to start when we run: %s\n%s" % (' '.join(args), stdout))
- elif not exit_status and expect_failure:
self.fail("Tor failed to start when we ran: %s\n%s" % (' '.join(args), stdout))
+ elif not exit_status and expect_failure:
+ self.fail("Didn't expect tor to be able to start when we run: %s\n%s" % (' '.join(args), stdout))
return stem.util.str_tools._to_unicode(stdout) if stem.prereq.is_python_3() else stdout
More information about the tor-commits
mailing list