File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -1078,7 +1078,7 @@ def __init__(
10781078 # Close and delete the temporary zipfile
10791079 try :
10801080 zipfileobj .close ()
1081- except Exception :
1081+ except : # pylint disable=broad-exception-caught
10821082 pass
10831083 # Try to load shapefile
10841084 if self .shp or self .dbf :
@@ -1988,7 +1988,7 @@ def __init__(
19881988 shp = None ,
19891989 shx = None ,
19901990 dbf = None ,
1991- ** kwargs ,
1991+ ** kwargs , # pylint: disable=unused-argument
19921992 ):
19931993 self .target = target
19941994 self .autoBalance = autoBalance
@@ -2976,15 +2976,7 @@ def _test(args: list[str] = sys.argv[1:], verbosity: bool = False) -> int:
29762976 new_url = _replace_remote_url (old_url )
29772977 example .source = example .source .replace (old_url , new_url )
29782978
2979- class Py23DocChecker (doctest .OutputChecker ):
2980- def check_output (self , want , got , optionflags ):
2981- res = doctest .OutputChecker .check_output (self , want , got , optionflags )
2982- return res
2983-
2984- def summarize (self ):
2985- doctest .OutputChecker .summarize (True )
2986-
2987- runner = doctest .DocTestRunner (checker = Py23DocChecker (), verbose = verbosity )
2979+ runner = doctest .DocTestRunner (verbose = verbosity )
29882980
29892981 if verbosity == 0 :
29902982 print (f"Running { len (tests .examples )} doctests..." )
You can’t perform that action at this time.
0 commit comments