[tor-commits] [stem/master] Skip couple manual unit tests on OSX

atagar at torproject.org atagar at torproject.org
Sun Mar 27 21:05:40 UTC 2016


commit 3519790cb186f1442883c928434819c6637e22d9
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Mar 27 14:05:16 2016 -0700

    Skip couple manual unit tests on OSX
    
    OSX is still proving an issue for some of these assertions. Skipping the tests
    for now...
    
      https://trac.torproject.org/projects/tor/ticket/18660
---
 test/unit/manual.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/unit/manual.py b/test/unit/manual.py
index be0ee9c..7d9cf2a 100644
--- a/test/unit/manual.py
+++ b/test/unit/manual.py
@@ -131,6 +131,9 @@ class TestManual(unittest.TestCase):
     if not stem.util.system.is_available('man'):
       test.runner.skip(self, '(require man command)')
       return
+    elif not stem.util.system.is_mac():
+      test.runner.skip(self, '(man lacks --encoding arg on OSX, #18660)')
+      return
 
     manual = stem.manual.Manual.from_man(EXAMPLE_MAN_PATH)
 
@@ -151,6 +154,9 @@ class TestManual(unittest.TestCase):
     if not stem.util.system.is_available('man'):
       test.runner.skip(self, '(require man command)')
       return
+    elif not stem.util.system.is_mac():
+      test.runner.skip(self, '(man lacks --encoding arg on OSX, #18660)')
+      return
 
     manual = stem.manual.Manual.from_man(UNKNOWN_OPTIONS_MAN_PATH)
 



More information about the tor-commits mailing list