diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-24 10:20:56 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-24 11:43:28 -0400 |
commit | 8546117d2b70087f08c7fe54791461be254a98ef (patch) | |
tree | 2f5da5953385359c9f716f7dd365ea939bb81234 /tests/test_html.py | |
parent | d1e3d587ae8d9bbf4e093b649498746a7673a173 (diff) | |
download | python-coveragepy-git-8546117d2b70087f08c7fe54791461be254a98ef.tar.gz |
bom.py lost its BOM. Fix it.
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index b6f6f9eb..4abe18ef 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -640,6 +640,12 @@ class HtmlGoldTests(CoverageGoldTest): self.output_dir("out/bom") with change_dir("src"): + # It's important that the source file really have a BOM, which can + # get lost, so check that it's really there. + with open("bom.py", "rb") as f: + first_three = f.read(3) + assert first_three == b"\xef\xbb\xbf" + # pylint: disable=import-error cov = coverage.Coverage() cov.start() |