Package: python-coverage Version: 2.77-1~yarik1 Severity: normal
just give a try to get annotated coverage for code (with -o /usr) such as import numpy as N i = 1 to get smth like Traceback (most recent call last): File "/usr/bin/python-coverage", line 4, in ? coverage.the_coverage.command_line(sys.argv[1:]) File "/usr/lib/python2.4/site-packages/coverage.py", line 378, in command_line self.annotate(args, directory, ignore_errors, omit_prefixes=omit) File "/usr/lib/python2.4/site-packages/coverage.py", line 758, in annotate filename, statements, excluded, missing, _ = self.analysis2(morf) File "/usr/lib/python2.4/site-packages/coverage.py", line 655, in analysis2 filename, statements, excluded = self.analyze_morf(morf) File "/usr/lib/python2.4/site-packages/coverage.py", line 543, in analyze_morf raise CoverageException, "File '%s' not Python source." % filename coverage.CoverageException: File '/tmp/<string>' not Python source. I've tried recent upstream 2.77 and it worked for the example above but still fails on our code, which you can obtain to reproduce the problem from Homepage: http://pkg-exppsy.alioth.debian.org/pymvpa Vcs-Browser: http://git.debian.org/?p=pkg-exppsy/pymvpa.git Vcs-Git: git://git.debian.org/git/pkg-exppsy/pymvpa.git just checkout branch yoh/mappers and type 'make coverage' to see how it fails at the end while generating annotations and in the moddle within summary but there it is caught and printed by python-coverage, so code proceeds further. also, though -o "$PWD/<,/usr" helps to workaround for -r, it fails for -a... Ha -- adding magic switch -i (which is shown in examples in output of python-coverage but not described there or in man page) seems makes coverage happy enough to don't fail in the middle. So I am fixing Makefile for the project above, thus to reproduce the bug, please remove -i from Makefile So, please also add description for that magic flag -i. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (600, 'unstable'), (50, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.23-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-coverage depends on: ii python 2.4.4-6 An interactive high-level object-o ii python-central 0.5.15 register and build utility for Pyt python-coverage recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]