diff options
| author | Georg Brandl <georg@python.org> | 2012-03-10 18:45:14 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2012-03-10 18:45:14 +0100 |
| commit | b08df4970be64fce06b9d69a219bdca522ed37e3 (patch) | |
| tree | bd8aab9db34725948e28568ebe641f2edc130535 /tests | |
| parent | ba6614741b77974ab457455ee173c77d2c0fe6f4 (diff) | |
| download | sphinx-b08df4970be64fce06b9d69a219bdca522ed37e3.tar.gz | |
Fixes #875 and #876: use the right file mode to successfully read config files under 2.x and 3.x.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_quickstart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py index 26064117..dba888dd 100644 --- a/tests/test_quickstart.py +++ b/tests/test_quickstart.py @@ -91,7 +91,7 @@ def test_quickstart_defaults(tempdir): conffile = tempdir / 'conf.py' assert conffile.isfile() ns = {} - f = open(conffile, 'U') + f = open(conffile, 'rbU') try: code = compile(f.read(), conffile, 'exec') finally: @@ -151,7 +151,7 @@ def test_quickstart_all_answers(tempdir): conffile = tempdir / 'source' / 'conf.py' assert conffile.isfile() ns = {} - f = open(conffile, 'U') + f = open(conffile, 'rbU') try: code = compile(f.read(), conffile, 'exec') finally: |
