Fix for Python 3.5

https://stackoverflow.com/a/42694113/6083
This commit is contained in:
Simon Willison 2018-07-25 10:20:56 -07:00 committed by GitHub
commit ba64cfb4bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(