[tor-commits] [stem/master] Fixed bugs in calls to test.runner.skip()
atagar at torproject.org
atagar at torproject.org
Sun Jul 1 02:49:59 UTC 2012
commit 8edfe7123997e99885ae514bbc1ae76d4c9bc1f8
Author: Beck <csybeck at gmail.com>
Date: Fri Jun 22 23:31:39 2012 +0800
Fixed bugs in calls to test.runner.skip()
---
test/integ/descriptor/reader.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/integ/descriptor/reader.py b/test/integ/descriptor/reader.py
index 25952de..6ecfa72 100644
--- a/test/integ/descriptor/reader.py
+++ b/test/integ/descriptor/reader.py
@@ -118,7 +118,7 @@ class TestDescriptorReader(unittest.TestCase):
# http://docs.python.org/library/os.html#os.chmod
if system.is_windows():
- test.runner.skip("(chmod not functional)")
+ test.runner.skip(self, "(chmod not functional)")
test_listing_path = _make_processed_files_listing(BASIC_LISTING)
os.chmod(test_listing_path, 0077) # remove read permissions
@@ -298,7 +298,7 @@ class TestDescriptorReader(unittest.TestCase):
"""
# Skip on windows since SIGALRM is unavailable
- if system.is_windows(): test.runner.skip("(SIGALRM unavailable)")
+ if system.is_windows(): test.runner.skip(self, "(SIGALRM unavailable)")
is_test_running = True
reader = stem.descriptor.reader.DescriptorReader("/usr")
@@ -422,7 +422,7 @@ class TestDescriptorReader(unittest.TestCase):
"""
if system.is_windows():
- test.runner.skip("(chmod not functional)")
+ test.runner.skip(self, "(chmod not functional)")
test_path = test.runner.get_runner().get_test_dir("secret_file")
More information about the tor-commits
mailing list