From b99fbf1ff6a06309ecf6cce8d6ae97dee5626784 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 24 Jul 2015 10:43:46 -0400 Subject: Add license mention to the top of all files. #313. --- tests/backtest.py | 3 + tests/coveragetest.py | 5 +- tests/covmodzip1.py | 3 + tests/eggsrc/egg1/egg1.py | 3 + tests/eggsrc/setup.py | 3 + tests/farm/annotate/annotate_dir.py | 3 + tests/farm/annotate/gold/white.py,cover | 3 + tests/farm/annotate/gold_anno_dir/a_a.py,cover | 3 + tests/farm/annotate/gold_anno_dir/b_b.py,cover | 3 + tests/farm/annotate/gold_anno_dir/multi.py,cover | 3 + tests/farm/annotate/gold_encodings/utf8.py,cover | 3 + tests/farm/annotate/gold_multi/a/a.py,cover | 3 + tests/farm/annotate/gold_multi/b/b.py,cover | 3 + tests/farm/annotate/gold_multi/multi.py,cover | 3 + tests/farm/annotate/gold_v24/white.py,cover | 3 + tests/farm/annotate/run.py | 3 + tests/farm/annotate/run_encodings.py | 3 + tests/farm/annotate/run_multi.py | 3 + tests/farm/annotate/src/a/a.py | 3 + tests/farm/annotate/src/b/b.py | 3 + tests/farm/annotate/src/multi.py | 3 + tests/farm/annotate/src/utf8.py | 3 + tests/farm/annotate/src/white.py | 3 + tests/farm/html/gold_a/a_py.html | 38 ++++--- tests/farm/html/gold_a/index.html | 8 +- tests/farm/html/gold_b_branch/b_py.html | 110 +++++++++++---------- tests/farm/html/gold_isolatin1/index.html | 8 +- tests/farm/html/gold_isolatin1/isolatin1_py.html | 30 ++++-- tests/farm/html/gold_omit_1/index.html | 14 ++- tests/farm/html/gold_omit_1/m1_py.html | 24 +++-- tests/farm/html/gold_omit_1/m2_py.html | 24 +++-- tests/farm/html/gold_omit_1/m3_py.html | 24 +++-- tests/farm/html/gold_omit_1/main_py.html | 44 +++++---- tests/farm/html/gold_omit_2/index.html | 12 ++- tests/farm/html/gold_omit_2/m2_py.html | 24 +++-- tests/farm/html/gold_omit_2/m3_py.html | 24 +++-- tests/farm/html/gold_omit_2/main_py.html | 44 +++++---- tests/farm/html/gold_omit_3/index.html | 10 +- tests/farm/html/gold_omit_3/m3_py.html | 24 +++-- tests/farm/html/gold_omit_3/main_py.html | 44 +++++---- tests/farm/html/gold_omit_4/index.html | 12 ++- tests/farm/html/gold_omit_4/m1_py.html | 24 +++-- tests/farm/html/gold_omit_4/m3_py.html | 24 +++-- tests/farm/html/gold_omit_4/main_py.html | 44 +++++---- tests/farm/html/gold_omit_5/index.html | 10 +- tests/farm/html/gold_omit_5/m1_py.html | 24 +++-- tests/farm/html/gold_omit_5/main_py.html | 44 +++++---- tests/farm/html/gold_other/blah_blah_other_py.html | 24 +++-- tests/farm/html/gold_other/here_py.html | 38 ++++--- tests/farm/html/gold_other/index.html | 10 +- tests/farm/html/gold_partial/index.html | 8 +- tests/farm/html/gold_partial/partial_py.html | 50 ++++++---- tests/farm/html/gold_styled/a_py.html | 38 ++++--- tests/farm/html/gold_styled/index.html | 8 +- tests/farm/html/gold_styled/style.css | 5 +- tests/farm/html/gold_unicode/index.html | 8 +- tests/farm/html/gold_unicode/unicode_py.html | 30 ++++-- tests/farm/html/gold_x_xml/coverage.xml | 44 ++++----- tests/farm/html/gold_y_xml_branch/coverage.xml | 48 ++++----- tests/farm/html/othersrc/other.py | 3 + tests/farm/html/run_a.py | 3 + tests/farm/html/run_a_xml_1.py | 3 + tests/farm/html/run_a_xml_2.py | 3 + tests/farm/html/run_b_branch.py | 7 +- tests/farm/html/run_bom.py | 3 + tests/farm/html/run_isolatin1.py | 3 + tests/farm/html/run_omit_1.py | 3 + tests/farm/html/run_omit_2.py | 3 + tests/farm/html/run_omit_3.py | 3 + tests/farm/html/run_omit_4.py | 3 + tests/farm/html/run_omit_5.py | 3 + tests/farm/html/run_other.py | 3 + tests/farm/html/run_partial.py | 7 +- tests/farm/html/run_styled.py | 3 + tests/farm/html/run_tabbed.py | 3 + tests/farm/html/run_unicode.py | 3 + tests/farm/html/run_y_xml_branch.py | 3 + tests/farm/html/src/a.py | 3 + tests/farm/html/src/b.py | 3 + tests/farm/html/src/bom.py | 23 +++-- tests/farm/html/src/here.py | 3 + tests/farm/html/src/isolatin1.py | 5 +- tests/farm/html/src/m1.py | 3 + tests/farm/html/src/m2.py | 3 + tests/farm/html/src/m3.py | 3 + tests/farm/html/src/main.py | 3 + tests/farm/html/src/omit4.ini | 3 + tests/farm/html/src/omit5.ini | 3 + tests/farm/html/src/partial.py | 3 + tests/farm/html/src/run_a_xml_2.ini | 3 + tests/farm/html/src/tabbed.py | 3 + tests/farm/html/src/unicode.py | 5 +- tests/farm/html/src/y.py | 3 + tests/farm/run/run_chdir.py | 3 + tests/farm/run/run_timid.py | 3 + tests/farm/run/run_xxx.py | 3 + tests/farm/run/src/chdir.py | 3 + tests/farm/run/src/showtrace.py | 3 + tests/farm/run/src/xxx | 3 + tests/helpers.py | 3 + tests/js/tests.js | 3 + tests/modules/covmod1.py | 3 + tests/modules/pkg1/p1a.py | 3 + tests/modules/pkg1/p1b.py | 3 + tests/modules/pkg1/p1c.py | 3 + tests/modules/pkg1/runmod2.py | 3 + tests/modules/pkg1/sub/ps1a.py | 3 + tests/modules/pkg1/sub/runmod3.py | 3 + tests/modules/pkg2/p2a.py | 3 + tests/modules/pkg2/p2b.py | 3 + tests/modules/plugins/another.py | 3 + tests/modules/runmod1.py | 3 + tests/modules/usepkgs.py | 3 + tests/moremodules/othermods/othera.py | 3 + tests/moremodules/othermods/otherb.py | 3 + tests/moremodules/othermods/sub/osa.py | 3 + tests/moremodules/othermods/sub/osb.py | 3 + tests/osinfo.py | 3 + tests/plugin1.py | 3 + tests/plugin2.py | 3 + tests/stress_phystoken.tok | 3 + tests/stress_phystoken_dos.tok | 3 + tests/test_api.py | 5 +- tests/test_arcs.py | 5 +- tests/test_backward.py | 3 + tests/test_cmdline.py | 5 +- tests/test_collector.py | 3 + tests/test_concurrency.py | 3 + tests/test_config.py | 3 + tests/test_coverage.py | 6 +- tests/test_data.py | 3 + tests/test_debug.py | 3 + tests/test_execfile.py | 3 + tests/test_farm.py | 3 + tests/test_filereporter.py | 5 +- tests/test_files.py | 3 + tests/test_html.py | 3 + tests/test_misc.py | 3 + tests/test_oddball.py | 3 + tests/test_parser.py | 5 +- tests/test_phystokens.py | 5 +- tests/test_plugins.py | 3 + tests/test_process.py | 3 + tests/test_python.py | 3 + tests/test_results.py | 5 +- tests/test_summary.py | 9 +- tests/test_templite.py | 3 + tests/test_testing.py | 3 + tests/test_xml.py | 3 + tests/try_execfile.py | 3 + 150 files changed, 1003 insertions(+), 395 deletions(-) (limited to 'tests') diff --git a/tests/backtest.py b/tests/backtest.py index 50834721..827e891f 100644 --- a/tests/backtest.py +++ b/tests/backtest.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 + """Add things to old Pythons so I can pretend they are newer, for tests.""" # pylint: disable=redefined-builtin diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 2c923538..5a1de913 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -1,4 +1,7 @@ -"""Base test case class for coverage testing.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Base test case class for coverage.py testing.""" import datetime import glob diff --git a/tests/covmodzip1.py b/tests/covmodzip1.py index 3ec4cdc4..6f135dd6 100644 --- a/tests/covmodzip1.py +++ b/tests/covmodzip1.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 + """covmodzip.py: for putting into a zip file.""" j = 1 j += 1 diff --git a/tests/eggsrc/egg1/egg1.py b/tests/eggsrc/egg1/egg1.py index 3fadde33..72600808 100644 --- a/tests/eggsrc/egg1/egg1.py +++ b/tests/eggsrc/egg1/egg1.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 + # My egg file! walrus = "Eggman" diff --git a/tests/eggsrc/setup.py b/tests/eggsrc/setup.py index f9b8b9d0..c935798d 100644 --- a/tests/eggsrc/setup.py +++ b/tests/eggsrc/setup.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 + from setuptools import setup setup( diff --git a/tests/farm/annotate/annotate_dir.py b/tests/farm/annotate/annotate_dir.py index 86c18cab..3bb2dbe7 100644 --- a/tests/farm/annotate/annotate_dir.py +++ b/tests/farm/annotate/annotate_dir.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 + copy("src", "run") run(""" coverage run multi.py diff --git a/tests/farm/annotate/gold/white.py,cover b/tests/farm/annotate/gold/white.py,cover index 36b0b993..fc163226 100644 --- a/tests/farm/annotate/gold/white.py,cover +++ b/tests/farm/annotate/gold/white.py,cover @@ -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 case sent to me by Steve White > def f(self): diff --git a/tests/farm/annotate/gold_anno_dir/a_a.py,cover b/tests/farm/annotate/gold_anno_dir/a_a.py,cover index d0ff3c0c..4729cfbb 100644 --- a/tests/farm/annotate/gold_anno_dir/a_a.py,cover +++ b/tests/farm/annotate/gold_anno_dir/a_a.py,cover @@ -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 + > def a(x): > if x == 1: > print("x is 1") diff --git a/tests/farm/annotate/gold_anno_dir/b_b.py,cover b/tests/farm/annotate/gold_anno_dir/b_b.py,cover index 90d076f1..228715f0 100644 --- a/tests/farm/annotate/gold_anno_dir/b_b.py,cover +++ b/tests/farm/annotate/gold_anno_dir/b_b.py,cover @@ -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 + > def b(x): > msg = "x is %s" % x > print(msg) diff --git a/tests/farm/annotate/gold_anno_dir/multi.py,cover b/tests/farm/annotate/gold_anno_dir/multi.py,cover index 2a5c59ce..90a13c91 100644 --- a/tests/farm/annotate/gold_anno_dir/multi.py,cover +++ b/tests/farm/annotate/gold_anno_dir/multi.py,cover @@ -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 a.a > import b.b diff --git a/tests/farm/annotate/gold_encodings/utf8.py,cover b/tests/farm/annotate/gold_encodings/utf8.py,cover index 6dbf7e0d..3ef31e0f 100644 --- a/tests/farm/annotate/gold_encodings/utf8.py,cover +++ b/tests/farm/annotate/gold_encodings/utf8.py,cover @@ -1,4 +1,7 @@ # -*- 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 + # This comment has an accent: é > print("spam eggs") diff --git a/tests/farm/annotate/gold_multi/a/a.py,cover b/tests/farm/annotate/gold_multi/a/a.py,cover index fb3f5435..e5e97226 100644 --- a/tests/farm/annotate/gold_multi/a/a.py,cover +++ b/tests/farm/annotate/gold_multi/a/a.py,cover @@ -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 + > def a(x): > if x == 1: > print "x is 1" diff --git a/tests/farm/annotate/gold_multi/b/b.py,cover b/tests/farm/annotate/gold_multi/b/b.py,cover index a3f5daec..26b25548 100644 --- a/tests/farm/annotate/gold_multi/b/b.py,cover +++ b/tests/farm/annotate/gold_multi/b/b.py,cover @@ -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 + > def b(x): > print "x is %s" % x diff --git a/tests/farm/annotate/gold_multi/multi.py,cover b/tests/farm/annotate/gold_multi/multi.py,cover index 2a5c59ce..90a13c91 100644 --- a/tests/farm/annotate/gold_multi/multi.py,cover +++ b/tests/farm/annotate/gold_multi/multi.py,cover @@ -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 a.a > import b.b diff --git a/tests/farm/annotate/gold_v24/white.py,cover b/tests/farm/annotate/gold_v24/white.py,cover index bbd8d428..8af136b8 100644 --- a/tests/farm/annotate/gold_v24/white.py,cover +++ b/tests/farm/annotate/gold_v24/white.py,cover @@ -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 case sent to me by Steve White > def f(self): diff --git a/tests/farm/annotate/run.py b/tests/farm/annotate/run.py index 236f401f..33e5f671 100644 --- a/tests/farm/annotate/run.py +++ b/tests/farm/annotate/run.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 + copy("src", "out") run(""" coverage run white.py diff --git a/tests/farm/annotate/run_encodings.py b/tests/farm/annotate/run_encodings.py index eb1a3a9a..527cd88f 100644 --- a/tests/farm/annotate/run_encodings.py +++ b/tests/farm/annotate/run_encodings.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 + copy("src", "out") run(""" coverage run utf8.py diff --git a/tests/farm/annotate/run_multi.py b/tests/farm/annotate/run_multi.py index ef1e8238..4646293e 100644 --- a/tests/farm/annotate/run_multi.py +++ b/tests/farm/annotate/run_multi.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 + copy("src", "out_multi") run(""" coverage run multi.py diff --git a/tests/farm/annotate/src/a/a.py b/tests/farm/annotate/src/a/a.py index c2583d1e..e3e6631d 100644 --- a/tests/farm/annotate/src/a/a.py +++ b/tests/farm/annotate/src/a/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 + def a(x): if x == 1: print("x is 1") diff --git a/tests/farm/annotate/src/b/b.py b/tests/farm/annotate/src/b/b.py index 625a5490..b31d8c95 100644 --- a/tests/farm/annotate/src/b/b.py +++ b/tests/farm/annotate/src/b/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 + def b(x): msg = "x is %s" % x print(msg) diff --git a/tests/farm/annotate/src/multi.py b/tests/farm/annotate/src/multi.py index 19a6200c..bf8cfd5f 100644 --- a/tests/farm/annotate/src/multi.py +++ b/tests/farm/annotate/src/multi.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 a.a import b.b diff --git a/tests/farm/annotate/src/utf8.py b/tests/farm/annotate/src/utf8.py index 27342d87..fd43b2ab 100644 --- a/tests/farm/annotate/src/utf8.py +++ b/tests/farm/annotate/src/utf8.py @@ -1,4 +1,7 @@ # -*- 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 + # This comment has an accent: é print("spam eggs") diff --git a/tests/farm/annotate/src/white.py b/tests/farm/annotate/src/white.py index ecbbd25a..21e8a627 100644 --- a/tests/farm/annotate/src/white.py +++ b/tests/farm/annotate/src/white.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 case sent to me by Steve White def f(self): diff --git a/tests/farm/html/gold_a/a_py.html b/tests/farm/html/gold_a/a_py.html index a1346451..e52b303e 100644 --- a/tests/farm/html/gold_a/a_py.html +++ b/tests/farm/html/gold_a/a_py.html @@ -1,3 +1,6 @@ + + + @@ -5,7 +8,7 @@ - Coverage for a: 67% + Coverage for a.py: 67% @@ -20,7 +23,7 @@