[tor-commits] [stem/master] Unexpected exception from test_from_man_when_manual_is_unavailable on BSD

atagar at torproject.org atagar at torproject.org
Mon Sep 4 20:48:49 UTC 2017


commit b25c0523dd5138350acbb6407114ca31a4278eb6
Author: Damian Johnson <atagar at torproject.org>
Date:   Mon Sep 4 13:34:05 2017 -0700

    Unexpected exception from test_from_man_when_manual_is_unavailable on BSD
    
    Like many of the other tests, this behaves differently on BSD and hence needs
    the same mock as OSX.
---
 test/unit/manual.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/unit/manual.py b/test/unit/manual.py
index 70e28aaf..aa8cede1 100644
--- a/test/unit/manual.py
+++ b/test/unit/manual.py
@@ -298,6 +298,7 @@ class TestManual(unittest.TestCase):
     call_mock.assert_called_once_with('a2x -f manpage /no/such/path/tor.1.txt')
 
   @patch('stem.util.system.is_mac', Mock(return_value = False))
+  @patch('stem.util.system.is_bsd', Mock(return_value = False))
   @patch('stem.util.system.call', Mock(side_effect = OSError('man --encoding=ascii -P cat tor returned exit status 16')))
   def test_from_man_when_manual_is_unavailable(self):
     exc_msg = "Unable to run 'man --encoding=ascii -P cat tor': man --encoding=ascii -P cat tor returned exit status 16"





More information about the tor-commits mailing list