Coverage for bom.py: 71%

# Coverage for bom.py : 71%

## 7 statements 5 run 2 missing 0 excluded

Hot-keys on this page

r m x p toggle line displays

j k next/prev highlighted chunk

0 (zero) top of page

1 (one) first highlighted chunk

1# A Python source file in utf-8, with BOM.

2 math = "3×4 = 12, ÷2 = 6±0"

3

4 import sys

5

6 if sys.version_info >= (3, 0):

7 assert len(math) == 18

8 assert len(math.encode('utf-8')) == 21

9 else:

10 assert len(math) == 21

11 assert len(math.decode('utf-8')) == 18