diff options
-rw-r--r-- | coverage/htmlfiles/coverage_html.js | 1 | ||||
-rw-r--r-- | coverage/tracer.c | 1 | ||||
-rw-r--r-- | doc/branch.rst | 1 | ||||
-rw-r--r-- | doc/faq.rst | 1 | ||||
-rw-r--r-- | doc/install.rst | 1 | ||||
-rw-r--r-- | doc/source.rst | 1 | ||||
-rw-r--r-- | howto.txt | 1 | ||||
-rw-r--r-- | igor.py | 4 | ||||
-rw-r--r-- | test/farm/html/src/partial.py | 1 | ||||
-rw-r--r-- | test/farm/html/src/tabbed.py | 1 | ||||
-rw-r--r-- | test/farm/run/src/chdir.py | 1 | ||||
-rw-r--r-- | test/test_api.py | 2 | ||||
-rw-r--r-- | test/test_config.py | 1 | ||||
-rw-r--r-- | test/test_misc.py | 1 | ||||
-rw-r--r-- | test/test_results.py | 1 | ||||
-rw-r--r-- | test/test_testing.py | 1 |
16 files changed, 5 insertions, 15 deletions
diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index 5906e653..b24006d2 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -374,4 +374,3 @@ coverage.scroll_window = function (to_pos) { coverage.finish_scrolling = function () { $("html,body").stop(true, true); }; - diff --git a/coverage/tracer.c b/coverage/tracer.c index c17dc03c..7bc07ea2 100644 --- a/coverage/tracer.c +++ b/coverage/tracer.c @@ -730,4 +730,3 @@ inittracer(void) } #endif /* Py3k */ - diff --git a/doc/branch.rst b/doc/branch.rst index 3ee09aa3..13b9dc6d 100644 --- a/doc/branch.rst +++ b/doc/branch.rst @@ -118,4 +118,3 @@ Here the while loop will never complete because the break will always be taken at some point. Coverage.py can't work that out on its own, but the "no branch" pragma indicates that the branch is known to be partial, and the line is not flagged. - diff --git a/doc/faq.rst b/doc/faq.rst index ef27c291..0eff28b6 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -113,4 +113,3 @@ Since 2004, `Ned Batchelder`_ has extended and maintained it with the help of .. _Gareth Rees: http://garethrees.org/ .. _Ned Batchelder: http://nedbatchelder.com .. _many others: http://bitbucket.org/ned/coveragepy/src/tip/AUTHORS.txt - diff --git a/doc/install.rst b/doc/install.rst index 5692b69b..ffce72fa 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -66,4 +66,3 @@ coverage installed properly:: $ coverage --version Coverage.py, version 3.5.3. http://nedbatchelder.com/code/coverage - diff --git a/doc/source.rst b/doc/source.rst index 8700bcb7..aafb976c 100644 --- a/doc/source.rst +++ b/doc/source.rst @@ -72,4 +72,3 @@ reporting. Note that these are ways of specifying files to measure. You can also exclude individual source lines. See :ref:`excluding` for details. - @@ -81,4 +81,3 @@ - To run the Javascript tests: open test/js/index.html in variety of browsers. - @@ -64,6 +64,7 @@ def do_check_eol(args): return checked.add(fname) + line = None for n, line in enumerate(open(fname, "rb")): if crlf: if "\r" in line: @@ -77,6 +78,9 @@ def do_check_eol(args): print("%s@%d: trailing whitespace found" % (fname, n+1)) return + if line is not None and not line.strip(): + print("%s: final blank line" % (fname,)) + def check_files(root, patterns, **kwargs): for root, dirs, files in os.walk(root): for f in files: diff --git a/test/farm/html/src/partial.py b/test/farm/html/src/partial.py index 9126844f..8d62f5c5 100644 --- a/test/farm/html/src/partial.py +++ b/test/farm/html/src/partial.py @@ -16,4 +16,3 @@ if 0: if 1: a = 13 - diff --git a/test/farm/html/src/tabbed.py b/test/farm/html/src/tabbed.py index 4c39cafe..2035852f 100644 --- a/test/farm/html/src/tabbed.py +++ b/test/farm/html/src/tabbed.py @@ -5,4 +5,3 @@ if x: if x: # look nice b = "No spaces" # when they c = "Done" # line up. - diff --git a/test/farm/run/src/chdir.py b/test/farm/run/src/chdir.py index d8287ed7..6d834924 100644 --- a/test/farm/run/src/chdir.py +++ b/test/farm/run/src/chdir.py @@ -2,4 +2,3 @@ import os print("Line One") os.chdir("subdir") print("Line Two") - diff --git a/test/test_api.py b/test/test_api.py index a832c035..aa0e726b 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -468,7 +468,7 @@ class ReportIncludeOmitTest(OmitIncludeTestsMixin, CoverageTest): class XmlIncludeOmitTest(OmitIncludeTestsMixin, CoverageTest): """Tests of the xml include/omit functionality. - + This also takes care of the HTML and annotate include/omit, by virtue of the structure of the code. diff --git a/test/test_config.py b/test/test_config.py index bf42bf76..4fc658f4 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -184,4 +184,3 @@ class ConfigFileTest(CoverageTest): 'source': ['.', '/home/ned/src/'], 'other': ['other', '/home/ned/other', 'c:\\Ned\\etc'] }) - diff --git a/test/test_misc.py b/test/test_misc.py index 72f5caac..eb73cc81 100644 --- a/test/test_misc.py +++ b/test/test_misc.py @@ -25,4 +25,3 @@ class HasherTest(CoverageTest): h2 = Hasher() h2.update({'b': 23, 'a': 17}) self.assertEqual(h1.digest(), h2.digest()) - diff --git a/test/test_results.py b/test/test_results.py index d6919fa2..3da92e4c 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -62,4 +62,3 @@ class NumbersTest(CoverageTest): self.assertEqual(n9999.pc_covered_str, "0.1") self.assertEqual(n10000.pc_covered_str, "0.0") Numbers.set_precision(0) - diff --git a/test/test_testing.py b/test/test_testing.py index bcf7d281..316dbc1b 100644 --- a/test/test_testing.py +++ b/test/test_testing.py @@ -129,4 +129,3 @@ class CoverageTestTest(CoverageTest): self.assertRaises(AssertionError, self.assert_doesnt_exist, "whoville.txt") self.assertRaises(AssertionError, self.assert_exists, "shadow.txt") - |