File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1187,10 +1187,14 @@ def __fieldNorm(self, fieldName):
11871187 fieldName .replace (' ' , '_' )
11881188
11891189# Begin Testing
1190- def test ():
1190+ def test (verbosity ):
11911191 import doctest
11921192 doctest .NORMALIZE_WHITESPACE = 1
1193- failure_count , test_count = doctest .testfile ("README.txt" , verbose = 1 )
1193+ if verbosity == 0 :
1194+ print ('Running doctests...' )
1195+ failure_count , test_count = doctest .testfile ("README.txt" , verbose = verbosity )
1196+ if verbosity == 0 and failure_count == 0 :
1197+ print ('All test passed successfully' )
11941198 return failure_count
11951199
11961200if __name__ == "__main__" :
@@ -1200,6 +1204,6 @@ def test():
12001204 testing libraries but for now unit testing is done using what's available in
12011205 2.3.
12021206 """
1203- failure_count = test ()
1207+ failure_count = test (0 )
12041208 sys .exit (failure_count )
12051209
You can’t perform that action at this time.
0 commit comments