diff --git a/tests/test_ext_viewcode.py b/tests/test_ext_viewcode.py
index c848234767f..5579cb6f2d9 100644
--- a/tests/test_ext_viewcode.py
+++ b/tests/test_ext_viewcode.py
@@ -39,7 +39,7 @@ def check_viewcode_output(app, status, warning):
if pygments.__version__ >= '2.14.0':
assert ' """\n' in result
else:
- assert ' """\n' in result
+ assert ' """\n' in result
assert ' this is Class1\n' in result
assert ' """\n' in result