[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Hide doctest verbosity



commit ba660041d599de724a223fa25c219629d25da4be
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sun Sep 20 13:35:20 2020 -0700

    Hide doctest verbosity
    
    Python's doctest module examines our system argv, printing verbose (and
    unhelpfully confusing) assertion information when we have a '-v' argument...
    
      https://docs.python.org/3/library/doctest.html#doctest.testfile
    
    That's fine, but run_tests.py separately accepts a '-v' argument so explicitly
    disabling doctest verbosity.
---
 test/unit/doctest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/doctest.py b/test/unit/doctest.py
index 40791cf3..791e98b4 100644
--- a/test/unit/doctest.py
+++ b/test/unit/doctest.py
@@ -55,7 +55,7 @@ class TestDocumentation(unittest.TestCase):
     is_failed = False
 
     for path in stem.util.system.files_with_suffix(stem_dir, '.py'):
-      args = {'module_relative': False}
+      args = {'module_relative': False, 'verbose': False}
       test_run = None
 
       if path.endswith('/stem/util/conf.py'):



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits