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):
73
73
74
74
75
75
def 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 ("""\
78
78
my_config = lambda: None
79
79
show_warning_types = True
80
80
def setup(app):
@@ -84,5 +84,6 @@ def setup(app):
84
84
app = make_app (srcdir = tmp_path )
85
85
app .build ()
86
86
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]"
88
89
)
You can’t perform that action at this time.
0 commit comments