Re[2]: coverage.py problem

2007-03-21 Thread Orin

Thank you very much. Just reading the comments on that url, I found the reason 
of my problem. 

It was here:

--- coverage.py 
+++ coverage.py 
@@ -464,6 +464,8 @@

def collect(self): 
cache_dir, local = os.path.split(self.cache) 
+ if not cache_dir:   #this two strings was upsent
+ cache_dir = "." 
for file in os.listdir(cache_dir): 
if not file.startswith(local): 
continue

With best regards, Orin 
-- 
http://mail.python.org/mailman/listinfo/python-list


coverage.py problem

2007-03-19 Thread Orin
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_lineself.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

-- 
http://mail.python.org/mailman/listinfo/python-list