[qmtest] exceptions.TypeError: All dictionary items must be strings, or all must be unicode

Mark Mitchell mark at codesourcery.com
Wed Feb 25 21:25:31 UTC 2004


Andrew Funk wrote:

>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.
>
>  
>
Neat. :-)

It looks like that's coming from the fact that Windows can support both 
Unicode and ASCII strings.  In ExecTestBase.MakeEnvironment, would you 
please try replacing:

               environment[variable] = value
 
with
  
               environment[variable] = str(value)

Does that help?

-- 
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com




More information about the qmtest mailing list