summaryrefslogtreecommitdiff
path: root/tests/test_build_latex.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-01-02 00:01:14 +0000
committerGitHub <noreply@github.com>2023-01-02 00:01:14 +0000
commit4032070e8131f518bbb8a04e8d63c5af4df9b59d (patch)
tree47b14f58d5337448e8358029264ebcd6d1ae7351 /tests/test_build_latex.py
parentede68fa423107fbab74d07b307d7dcb03c00dfbd (diff)
downloadsphinx-git-4032070e8131f518bbb8a04e8d63c5af4df9b59d.tar.gz
Run pyupgrade (#11070)
Diffstat (limited to 'tests/test_build_latex.py')
-rw-r--r--tests/test_build_latex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
index 96ba87243..a59e8525c 100644
--- a/tests/test_build_latex.py
+++ b/tests/test_build_latex.py
@@ -61,8 +61,8 @@ def compile_latex_document(app, filename='python.tex'):
except CalledProcessError as exc:
print(exc.stdout.decode('utf8'))
print(exc.stderr.decode('utf8'))
- raise AssertionError('%s exited with return code %s' % (app.config.latex_engine,
- exc.returncode))
+ raise AssertionError(f'{app.config.latex_engine} exited with '
+ f'return code {exc.returncode}')
def skip_if_requested(testfunc):