exceptions.TypeError: All dictionary items must be strings, or all must be unicode
Andrew Funk
afunk at ll.mit.edu
Wed Feb 25 20:31:20 UTC 2004
Hi,
Using QMTest 2.2 under Linux, I added an environment variable to a test,
and the test ran correctly. When I try to run the same test under
Windows, I get the following error. I have also attached the test
below. I will look into this further but I wonder if anyone has a clue
about the qmtest.exception raised.
Thanks,
Andy
--- TEST RESULTS
-------------------------------------------------------------
myfirsttest : ERROR
An exception occurred.
qmtest.exception:
exceptions.TypeError: All dictionary items must be strings, or all
must
be unicode
qmtest.target:
local
qmtest.traceback:
File "C:\Python23\Lib\site-packages\qm\test\target.py", line
215, in Run
Test
descriptor.Run(context, result)
File "C:\Python23\Lib\site-packages\qm\test\database.py", line
246, in R
un
self._Execute(context, result, "Run")
File "C:\Python23\Lib\site-packages\qm\test\database.py", line
168, in _
Execute
eval("item.%s(context, result)" % method)
File "", line 0, in ?
File "C:\Python23\Lib\site-packages\qm\test\classes\command.py",
line 46
8, in Run
self.RunProgram(arguments[0], arguments, context, result)
File "C:\Python23\Lib\site-packages\qm\test\classes\command.py",
line 18
7, in RunProgram
exit_status = e.Run(arguments, environment, path = program)
File "C:\Python23\Lib\site-packages\qm\executable.py", line 513,
in Run
path)
File "C:\Python23\Lib\site-packages\qm\executable.py", line 232,
in Run
child = self.Spawn(arguments, environment, dir, path,
exception_pipe)
File "C:\Python23\Lib\site-packages\qm\executable.py", line 145,
in Spaw
n
startupinfo)[0]
<?xml version="1.0" ?>
<!DOCTYPE extension
PUBLIC '-//QM/2.2/Extension//EN'
'http://www.codesourcery.com/qm/dtds/2.2/-//qm/2.2/extension//en.dtd'>
<extension class="command.ShellScriptTest" kind="test"><argument
name="stdin"><text/></argument><argument
name="stderr"><text/></argument><argument
name="stdout"><text/></argument><argument
name="prerequisites"><set/></argument><argument
name="target_group"><text>.*</text></argument><argument
name="exit_code"><integer>0</integer></argument><argument
name="environment"><set><text>e=mc2</text></set></argument><argument
name="script"><text>echo ${e}</text></argument><argument
name="arguments"><set/></argument><argument
name="timeout"><integer>-1</integer></argument><argument
name="resources"><set/></argument></extension>
More information about the qmtest
mailing list