File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ def test_texinfo_warnings(app, warning):
7373
7474
7575def test_uncacheable_config_warning (make_app , tmp_path ):
76- """Test than an unpickleable config value raises a warning."""
77- tmp_path .joinpath ('conf.py' ).write_text ("""
76+ """Test that an unpickleable config value raises a warning."""
77+ tmp_path .joinpath ('conf.py' ).write_text ("""\
7878 my_config = lambda: None
7979show_warning_types = True
8080def setup(app):
@@ -84,5 +84,6 @@ def setup(app):
8484 app = make_app (srcdir = tmp_path )
8585 app .build ()
8686 assert strip_colors (app .warning .getvalue ()).strip () == (
87- "WARNING: cannot cache unpickable configuration value: 'my_config' [config.cache]"
87+ "WARNING: cannot cache unpickable configuration value: 'my_config' "
88+ "(because it contains a function, class, or module object) [config.cache]"
8889 )
You can’t perform that action at this time.
0 commit comments