Commits

Ned Batchelder committed 446b583 Merge

Automated merge with ssh://bitbucket.org/ned/coveragepy

  • Participants
  • Parent commits 42e976d, 79075fb

Comments (0)

Files changed (2)

 - Modules can now be run directly using ``coverage run -m modulename``, to
   mirror Python's ``-m`` flag.  Closes `issue 95`_, thanks, Brandon Rhodes.
 
-- ``coverage run`` didn't emulate Python accurately in one detail: the
+- ``coverage run`` didn't emulate Python accurately in one small detail: the
   current directory inserted into ``sys.path`` was relative rather than
   absolute. This is now fixed.
 
-- A little bit of Jython support: `coverage run` can now measure Jython
-  execution by adapting when $py.class files are traced. Thanks, Adi Roiban.
-
 - HTML reporting is now incremental: a record is kept of the data that
   produced the HTML reports, and only files whose data has changed will
   be generated.  This should make most HTML reporting faster.
   the directory name to python:  ``python coverage_py_working_dir run ...``.
   Thanks, Brett Cannon.
 
+- A little bit of Jython support: `coverage run` can now measure Jython
+  execution by adapting when $py.class files are traced. Thanks, Adi Roiban.
+  Jython still doesn't provide the Python libraries needed to make
+  coverage reporting work, unfortunately.
+
 - Internally, files are now closed explicitly, fixing `issue 104`_.  Thanks,
   Brett Cannon.
 

coverage/results.py

         # trouble, and here is where it's the least burden to remove them.
         unpredicted = [
             e for e in executed
-                if e not in possible 
-                    and e[0] != e[1] 
+                if e not in possible
+                    and e[0] != e[1]
                     and e[0] not in self.no_branch
             ]
         return sorted(unpredicted)