[qmtest] Patch 2.0.3 or use latest CVS?
Nathaniel Smith
njs at pobox.com
Sat Jan 3 02:42:41 UTC 2004
On Tue, Dec 30, 2003 at 04:42:17PM -0500, Scott Lowrey wrote:
> In running 2.0.3 from the website, I came across a small bug that shows up
> during a simple test on a remote target. The bug is in
> qm/test/classes/rsh_target.py. I was able to hack it and get the test to
> work.
>
> Today, I built a version of QMTest from the CVS repository and it blew up
> a bit more violently for the same test:
>
> File "/opt/nextest/lib/qm/qm/test/qmtest.py", line 78, in ?
> exit_code = command.Execute()
> File "/lib/qm/qm/test/cmdline.py", line 569, in Execute
> File "/lib/qm/qm/test/cmdline.py", line 1099, in __ExecuteRemote
> File "/opt/nextest/lib/python2.3/copy_reg.py", line 50, in
> _reconstructor
> obj = base.__new__(cls, state)
> TypeError: ('dict.__new__(X): X is not a type object (classobj)',
> <function _reconstructor at 0x81827d4>, (<class qm.test.context.Context at
> 0x833477c>, <type 'dict'>, {}))
I think QMTest is talking to an old version of itself on the remote
host; you need to install CVS QMTest on the remote host as well. (Or
if the problem is that CVS QMTest is installed at different locations
on the local and remote hosts, then you should set the 'qmtest'
attribute of your remote target to the full path to an appropriate
qmtest executable on the remote host.)
Evidence? There were incompatible changes to the Context object, and
this should cause exactly this problem when the local host tries to
send a pickled Context across to the remote host. Also, the line
numbers in the exception are wrong for any CVS version from at least
the past 6 months.
-- Nathaniel
--
.i dei jitfa fanmo xatra
More information about the qmtest
mailing list