[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Unexpected exception from test_from_man_when_manual_is_unavailable on BSD
commit b25c0523dd5138350acbb6407114ca31a4278eb6
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits