diff options
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index 9bb8f392..4abe18ef 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 -# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt +# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Tests that HTML generation is awesome.""" @@ -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() |