@@ -250,13 +250,13 @@ def test_html_ref_links(self):
250
250
)
251
251
252
252
def test_docformat (self ):
253
- with self .assertWarns (UserWarning ) as cm ,\
253
+ with self .assertWarns (UserWarning ) as cm , \
254
254
run_html (EXAMPLE_MODULE , config = 'docformat="restructuredtext"' ):
255
255
self ._basic_html_assertions ()
256
256
self .assertIn ('numpy' , cm .warning .args [0 ])
257
257
258
258
def test_html_no_source (self ):
259
- with self .assertWarns (DeprecationWarning ),\
259
+ with self .assertWarns (DeprecationWarning ), \
260
260
run_html (EXAMPLE_MODULE , html_no_source = None ):
261
261
self ._basic_html_assertions ()
262
262
self ._check_files (exclude_patterns = ['class="source"' , 'Hidden' ])
@@ -301,7 +301,7 @@ def test_external_links(self):
301
301
self ._basic_html_assertions ()
302
302
self ._check_files (exclude_patterns = ['<a href="/sys.version.ext"' ])
303
303
304
- with self .assertWarns (DeprecationWarning ),\
304
+ with self .assertWarns (DeprecationWarning ), \
305
305
run_html (EXAMPLE_MODULE , external_links = None ):
306
306
self ._basic_html_assertions ()
307
307
self ._check_files (['<a title="sys.version" href="/sys.version.ext"' ])
@@ -319,7 +319,7 @@ def test_template_dir(self):
319
319
pdoc .tpl_lookup ._collection .clear ()
320
320
321
321
def test_link_prefix (self ):
322
- with self .assertWarns (DeprecationWarning ),\
322
+ with self .assertWarns (DeprecationWarning ), \
323
323
run_html (EXAMPLE_MODULE , link_prefix = '/foobar/' ):
324
324
self ._basic_html_assertions ()
325
325
self ._check_files (['/foobar/' + EXAMPLE_MODULE ])
@@ -445,8 +445,8 @@ def test_relative_dir_path(self):
445
445
self ._check_files (())
446
446
447
447
def test_skip_errors (self ):
448
- with chdir (os .path .join (TESTS_BASEDIR , EXAMPLE_MODULE , '_skip_errors' )),\
449
- redirect_streams (),\
448
+ with chdir (os .path .join (TESTS_BASEDIR , EXAMPLE_MODULE , '_skip_errors' )), \
449
+ redirect_streams (), \
450
450
self .assertWarns (pdoc .Module .ImportWarning ) as cm :
451
451
run ('.' , skip_errors = None )
452
452
self .assertIn ('ZeroDivision' , cm .warning .args [0 ])
0 commit comments