469,358 Members | 1,628 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

coverage.py problem

Hi,
I have a problem in using coverage.py module in my project:

../cov -c
Traceback (most recent call last):
File "./cov", line 10, in ?
coverage.the_coverage.command_line(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/coverage.py", line 363, in
command_line self.collect()
File "/usr/lib/python2.4/site-packages/coverage.py", line 467, in
collect
for file in os.listdir(cache_dir):
OSError: [Errno 2] No such file or directory: ''

The make file, in which coverage.py are been used is:
.................
pythonpath=..
# Targets
..PHONY: pylint build test clean coverage
pylint: test
$(MAKE) -C .. pylint
test: build clean_coverage $(test_results) coverage
coverage:
./cov -c
./cov -r -m ../src*py
build:
$(MAKE) -C ../src
clean_coverage:
-rm .coverage*
./cov -e
clean:
-rm *~* $(test_results)
# Tests
%.pass :: %.py $(srcs)
-rm $@
PYTHONPATH=$(pythonpath) DJANGO_SETTINGS_MODULE=$(settings) ./cov -x -
p $< && touch $@
....................
If anybody knows what can be the reason of this error, please tell me

With best regards, Orin

Mar 19 '07 #1
2 1652
En Mon, 19 Mar 2007 17:58:49 -0300, Orin <sa*****@ukr.netescribió:
Hi,
I have a problem in using coverage.py module in my project:

./cov -c
Traceback (most recent call last):
File "./cov", line 10, in ?
coverage.the_coverage.command_line(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/coverage.py", line 363, in
command_line self.collect()
File "/usr/lib/python2.4/site-packages/coverage.py", line 467, in
collect
for file in os.listdir(cache_dir):
OSError: [Errno 2] No such file or directory: ''
It appears that cache_dir is an empty string (and shouldn't) - that's all
I can say about that unknown module (to me).

--
Gabriel Genellina

Mar 19 '07 #2

OrinI have a problem in using coverage.py module in my project:

You might want to contact Ned Batchelder, the author:

http://nedbatchelder.com/code/modules/coverage.html

Skip
Mar 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Richard Wesley | last post: by
1 post views Thread by Vijay Sankar | last post: by
7 posts views Thread by patrickmee | last post: by
reply views Thread by Orin | last post: by
1 post views Thread by Piotr Hrebieniuk | last post: by
5 posts views Thread by ev | last post: by
reply views Thread by python | last post: by
2 posts views Thread by innes | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.