diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-24 10:43:46 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-24 10:43:46 -0400 |
commit | b99fbf1ff6a06309ecf6cce8d6ae97dee5626784 (patch) | |
tree | 0ef7c253dbe1666fa30c820f1f2e1a16071a967f /tests/farm/html/src | |
parent | ca0e0463d3f5b5289f0e8c22953863c71e893f19 (diff) | |
download | python-coveragepy-git-b99fbf1ff6a06309ecf6cce8d6ae97dee5626784.tar.gz |
Add license mention to the top of all files. #313.
Diffstat (limited to 'tests/farm/html/src')
-rw-r--r-- | tests/farm/html/src/a.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/b.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/bom.py | 23 | ||||
-rw-r--r-- | tests/farm/html/src/here.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/isolatin1.py | 5 | ||||
-rw-r--r-- | tests/farm/html/src/m1.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/m2.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/m3.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/main.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/omit4.ini | 3 | ||||
-rw-r--r-- | tests/farm/html/src/omit5.ini | 3 | ||||
-rw-r--r-- | tests/farm/html/src/partial.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/run_a_xml_2.ini | 3 | ||||
-rw-r--r-- | tests/farm/html/src/tabbed.py | 3 | ||||
-rw-r--r-- | tests/farm/html/src/unicode.py | 5 | ||||
-rw-r--r-- | tests/farm/html/src/y.py | 3 |
16 files changed, 60 insertions, 12 deletions
diff --git a/tests/farm/html/src/a.py b/tests/farm/html/src/a.py index 3c1119f0..85764e21 100644 --- a/tests/farm/html/src/a.py +++ b/tests/farm/html/src/a.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # A test file for HTML reporting by coverage.py. if 1 < 2: diff --git a/tests/farm/html/src/b.py b/tests/farm/html/src/b.py index e57ceae8..cb673c22 100644 --- a/tests/farm/html/src/b.py +++ b/tests/farm/html/src/b.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # A test file for HTML reporting by coverage.py. def one(x): diff --git a/tests/farm/html/src/bom.py b/tests/farm/html/src/bom.py index 1aff5d52..21d26ca2 100644 --- a/tests/farm/html/src/bom.py +++ b/tests/farm/html/src/bom.py @@ -1,11 +1,14 @@ -# A Python source file in utf-8, with BOM.
-math = "3×4 = 12, ÷2 = 6±0"
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt -import sys
-
-if sys.version_info >= (3, 0):
- assert len(math) == 18
- assert len(math.encode('utf-8')) == 21
-else:
- assert len(math) == 21
- assert len(math.decode('utf-8')) == 18
+# A Python source file in utf-8, with BOM. +math = "3×4 = 12, ÷2 = 6±0" + +import sys + +if sys.version_info >= (3, 0): + assert len(math) == 18 + assert len(math.encode('utf-8')) == 21 +else: + assert len(math) == 21 + assert len(math.decode('utf-8')) == 18 diff --git a/tests/farm/html/src/here.py b/tests/farm/html/src/here.py index 87e988b3..fee9960d 100644 --- a/tests/farm/html/src/here.py +++ b/tests/farm/html/src/here.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # A test file for HTML reporting by coverage.py. import other diff --git a/tests/farm/html/src/isolatin1.py b/tests/farm/html/src/isolatin1.py index 7a49b07d..55a6f7de 100644 --- a/tests/farm/html/src/isolatin1.py +++ b/tests/farm/html/src/isolatin1.py @@ -1,5 +1,8 @@ -# A Python source file in another encoding. # -*- coding: iso8859-1 -*- +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +# A Python source file in another encoding. math = "34 = 12, 2 = 60" assert len(math) == 18 diff --git a/tests/farm/html/src/m1.py b/tests/farm/html/src/m1.py index 927e1f6b..524fb0aa 100644 --- a/tests/farm/html/src/m1.py +++ b/tests/farm/html/src/m1.py @@ -1,2 +1,5 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + m1a = 1 m1b = 2 diff --git a/tests/farm/html/src/m2.py b/tests/farm/html/src/m2.py index ffddf6cf..2d13bfe2 100644 --- a/tests/farm/html/src/m2.py +++ b/tests/farm/html/src/m2.py @@ -1,2 +1,5 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + m2a = 1 m2b = 2 diff --git a/tests/farm/html/src/m3.py b/tests/farm/html/src/m3.py index 395d7d25..96e8b992 100644 --- a/tests/farm/html/src/m3.py +++ b/tests/farm/html/src/m3.py @@ -1,2 +1,5 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + m3a = 1 m3b = 2 diff --git a/tests/farm/html/src/main.py b/tests/farm/html/src/main.py index ce894465..238d0b58 100644 --- a/tests/farm/html/src/main.py +++ b/tests/farm/html/src/main.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + import m1 import m2 import m3 diff --git a/tests/farm/html/src/omit4.ini b/tests/farm/html/src/omit4.ini index 6821ecda..b792e703 100644 --- a/tests/farm/html/src/omit4.ini +++ b/tests/farm/html/src/omit4.ini @@ -1,2 +1,5 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + [report] omit = m2.py diff --git a/tests/farm/html/src/omit5.ini b/tests/farm/html/src/omit5.ini index 7e32b414..3d8dbcf2 100644 --- a/tests/farm/html/src/omit5.ini +++ b/tests/farm/html/src/omit5.ini @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + [report] omit = fooey diff --git a/tests/farm/html/src/partial.py b/tests/farm/html/src/partial.py index 8d62f5c5..66dddacd 100644 --- a/tests/farm/html/src/partial.py +++ b/tests/farm/html/src/partial.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # partial branches a = 3 diff --git a/tests/farm/html/src/run_a_xml_2.ini b/tests/farm/html/src/run_a_xml_2.ini index 8d28f97b..5b5f18dc 100644 --- a/tests/farm/html/src/run_a_xml_2.ini +++ b/tests/farm/html/src/run_a_xml_2.ini @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # Put all the XML output in xml_2 [xml] output = ../xml_2/coverage.xml diff --git a/tests/farm/html/src/tabbed.py b/tests/farm/html/src/tabbed.py index 2035852f..e897e9fa 100644 --- a/tests/farm/html/src/tabbed.py +++ b/tests/farm/html/src/tabbed.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # This file should have tabs. x = 1 if x: diff --git a/tests/farm/html/src/unicode.py b/tests/farm/html/src/unicode.py index 08e1b540..37c5533a 100644 --- a/tests/farm/html/src/unicode.py +++ b/tests/farm/html/src/unicode.py @@ -1,5 +1,8 @@ -# A Python source file with exotic characters. # -*- 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 + +# A Python source file with exotic characters. upside_down = "ʎd˙ǝbɐɹǝʌoɔ" surrogate = "db40,dd00: x󠄀" diff --git a/tests/farm/html/src/y.py b/tests/farm/html/src/y.py index a5f5fc70..a50bb629 100644 --- a/tests/farm/html/src/y.py +++ b/tests/farm/html/src/y.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # A test file for XML reporting by coverage.py. def choice(x): |