From ba64cfb4bc8ff79086e3f61d9be3eaf35cc44c84 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 25 Jul 2018 10:20:56 -0700 Subject: [PATCH] Fix for Python 3.5 https://stackoverflow.com/a/42694113/6083 --- tests/test_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_docs.py b/tests/test_docs.py index 31298787..d8fa7be5 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -25,7 +25,7 @@ def test_config_options_are_documented(config): ('publish', 'datasette-publish-help.txt'), )) def test_help_includes(name, filename): - expected = open(docs_path / filename).read() + expected = open(str(docs_path / filename)).read() runner = CliRunner() result = runner.invoke(cli, [name, '--help'], terminal_width=88) actual = '$ datasette {} --help\n\n{}'.format(