[Python-Dev] Re: [Python-checkins] python/dist/src/Lib/test test_descr.py,1.161,1.162 (original) (raw)
Guido van Rossum guido@python.org
Tue, 26 Nov 2002 10:13:41 -0500
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Lib/test test_descr.py,1.161,1.162
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Modules _localemodule.c,2.35,2.36
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Modified Files: > testdescr.py > Log Message: > A tweaked version of Jeremy's patch #642489, to produce better error > messages about MRO conflicts. (Tweaks here: don't print the message, > but compare it with an expected string.) [...] > + raises(TypeError, "MRO conflict among bases B, A", > + type, "X", (A, B), {})
Unfortunately, the order of the bases in the error message depends on the order they come out of a dict. As we all know, this is not a recipe for happiness...
Oh, shit. I didn't review the code well enough. I'll change the test to check that we get some message starting with "MRO conflict among bases".
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Lib/test test_descr.py,1.161,1.162
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Modules _localemodule.c,2.35,2.36
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]