currently we have 3 different ways of running the tests which all result in different patterns of errors and failures.

Nose also seems to effect the discovery of tests and the sys.path. Somehow it forces the explicit loading of this statement,"from rdflib import Namespace", which results in the module rdflib.Namespace being loaded rather than the shortcut to the class rdflib.Namespace.Namespace.
methods and results(after fixing import errors locally)

* python setup.py nosetests  (finds 65 tests)
  builds rdflib and runs tests.

* nosetest (finds 65 tests) : same as above but no build

* python run_test.py (runs 33 tests)
Everything passes except for anything that does sparql, which errors out as mentioned before.

The difference is caused by the --attr which causes tests that don't have the attributes slowtest,unstable, or non_standard_dep to be run. A quick grep indicate folks have been writing test expecting the behavior of the flag "--eval-attr", which actually check to see if the attr evaluates to be true.

./test/context.py:15:    slowtest = True
./test/context.py:323:#    slowtest = False
./test/context.py:330:        slowtest = False
./test/context.py:339:        slowtest = False
./test/context.py:348:        slowtest = False
Binary file ./test/context.pyc matches
./test/graph.py:16:    slowtest = True
./test/graph.py:183:#    slowtest = False
./test/graph.py:191:        slowtest = False
./test/graph.py:201:        slowtest = False
Binary file ./test/graph.pyc matches
./test/parser_rdfcore.py:121:    slowtest = True
Binary file ./test/parser_rdfcore.pyc matches
./test/serializers/__init__.py:30: #test_multiple.slowtest=True # not really slow?

This would have the reversed effect for --attr=!slowtest (filtering all tests with slowtest=True or False) and --eval-attr=!slowtest does not work at all with nose.

Running sparql tests straight from python runs the test fine, though graham and I saw alot of breakage.

-w





-w

--

------ d. whit morriss ------
- senior engineer, opencore -
- http://www.openplans.org  -
- m: 415-710-8975           -

"If you don't know where you are, you don't know anything at all"
Dr. Edgar Spencer, Ph.D., 1995

begin:vcard
fn:D. Whitfield  Morriss
n:Morriss;D. Whitfield 
org:The Open Planning Project;OpenPlans
adr:;;1309 Ashwood Ave;Nashville;TN;37212;USA
email;internet:[EMAIL PROTECTED]
title:Lead Developer 
tel;home:615 292-9142
tel;cell:415 710-8975
x-mozilla-html:FALSE
version:2.1
end:vcard

_______________________________________________
Dev mailing list
Dev@rdflib.net
http://rdflib.net/mailman/listinfo/dev

Reply via email to