[tor-commits] [stem/master] change manual.py in integ to use has_encoding_man

atagar at torproject.org atagar at torproject.org
Fri Sep 8 17:08:24 UTC 2017


commit e55636d62481d3f7b1f3c70fa217bc6f69032feb
Author: Edmund Wong <ewongbb at pw-wspx.org>
Date:   Fri Sep 8 20:24:27 2017 +0800

    change manual.py in integ to use has_encoding_man
---
 test/integ/manual.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/integ/manual.py b/test/integ/manual.py
index 846b1b6e..85de28c9 100644
--- a/test/integ/manual.py
+++ b/test/integ/manual.py
@@ -107,7 +107,7 @@ class TestManual(unittest.TestCase):
           stem.manual.download_man_page(file_handle = tmp)
           self.man_path = tmp.name
 
-        man_cmd = 'man %s -P cat %s' % ('' if stem.util.system.is_mac() else '--encoding=ascii', self.man_path)
+        man_cmd = 'man %s -P cat %s' % ('' if not stem.util.system.has_encoding_man() else '--encoding=ascii', self.man_path)
         self.man_content = stem.util.system.call(man_cmd, env = {'MANWIDTH': '10000000'})
       except Exception as exc:
         self.download_error = 'Unable to download the man page: %s' % exc





More information about the tor-commits mailing list