Opened 15 years ago
Closed 15 years ago
#382 closed defect (worksforme)
test_triple_match_produces_no_duplicate_items fails if not run in the complete test suite
Reported by: | Felix Schwarz <felix.schwarz@…> | Owned by: | cmlenz |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | General | Version: | devel |
Keywords: | Cc: |
Description
The test suite passes for me (Python 2.6.2, Fedora Linux 12) if I run 'python setup.py test' but when I run the directives test module stand-alone I get one failing test. The test was introduced by #254.
I might be only a test ordering thing or something like that. I don't see any real-world problems...
$ python genshi/template/tests/directives.py ...................................................................F.................. ====================================================================== FAIL: test_triple_match_produces_no_duplicate_items (__main__.MatchDirectiveTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "genshi/template/tests/directives.py", line 975, in test_triple_match_produces_no_duplicate_items self.assertEqual(1, len(matches)) AssertionError: 1 != 2 ---------------------------------------------------------------------- Ran 86 tests in 0.487s
Change History (2)
comment:1 Changed 15 years ago by cmlenz
comment:2 Changed 15 years ago by cmlenz
- Milestone 0.6 deleted
- Resolution set to worksforme
- Status changed from new to closed
I.e. I suspect the tests might be running against a different version of Genshi. Maybe you have a slightly older version installed?
Anyway, I'm closing this for now, please reopen if this turns out to not be a path/version mixup.
I am unable to reproduce this error.
Can you try that with PYTHONPATH, i.e.:
Also try:
That should execute the same set of tests in the same order.