[qmtest] Problem loading expectation
Vladimir Prus
ghost at cs.msu.su
Tue Jul 15 04:45:50 UTC 2003
Hi Nathaniel,
> > Debugging further, I see that PickleResultStream.GetResult catches
> > cPickle.UnpicklingError exception, which, when printed, reads:
> >
> > unpickling stack underflow
> >
> > I don't really know what this means, and don't know what to do about it.
> > Anyway, is this a known issue? I see some code for handling different
> > versions of pickled result stream, so maybe it's just a bug?
>
> I have no idea what caused that error, but I did find a stupid bug
> that prevented old-style file loading from working right. Attached is
> the patch I've just committed to CVS, and you can see if it fixes your
> problem...
No luck. I get the following:
Traceback (most recent call last):
File "/home/ghost/build/Tools/qm-up-to-date/qm/test/qmtest.py", line 110, in
?
exit_code = main()
File "/home/ghost/build/Tools/qm-up-to-date/qm/test/qmtest.py", line 91, in
main
exit_code = command.Execute()
File "/home/ghost/build/Tools/qm-up-to-date/qm/test/cmdline.py", line 674,
in Execute
return method()
File "/home/ghost/build/Tools/qm-up-to-date/qm/test/cmdline.py", line 1445,
in __ExecuteServer
self.__GetExpectedOutcomes())
File "/home/ghost/build/Tools/qm-up-to-date/qm/test/cmdline.py", line 1522,
in __GetExpectedOutcomes
self.GetDatabase())
File "/home/ghost/build/Tools/qm-up-to-date/qm/test/base.py", line 351, in
load_outcomes
results = load_results(file, database)
File "/home/ghost/build/Tools/qm-up-to-date/qm/test/base.py", line 384, in
load_results
return reader_cls({"file": file})
File
"/home/ghost/build/Tools/qm-up-to-date/qm/test/classes/pickle_result_stream.py",
line 183, in __init__
version = self.__unpickler.load()
cPickle.UnpicklingError: <class 'qm.test.context.Context'> is not safe for
unpickling
- Volodya
More information about the qmtest
mailing list