oictest icon indicating copy to clipboard operation
oictest copied to clipboard

Invalid Dictionary Syntax in check.py

Open nynymike opened this issue 10 years ago • 1 comments

Getting these two stack traces...

Traceback (most recent call last): File "./oic_flow_tests.py", line 11, in from oictest.graph import Node, flatten File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/_init _.py", line 16, in from oictest.check import CheckRegistrationResponse File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 228 supported = [{"code"}]

Traceback (most recent call last): File "./oic_flow_tests.py", line 11, in from oictest.graph import Node, flatten File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/init.py", line 16, in from oictest.check import CheckRegistrationResponse File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 233 rt = {val}

I think {val} and {"code"} are not legal python dictionaries. Try {val: 0}, {"code": 0}

nynymike avatar Dec 07 '14 05:12 nynymike

7 dec 2014 kl. 06:50 skrev Mike Schwartz [email protected]:

Getting these two stack traces...

Traceback (most recent call last): File "./oic_flow_tests.py", line 11, in from oictest.graph import Node, flatten File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/_init _.py", line 16, in from oictest.check import CheckRegistrationResponse File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 228 supported = [{"code"}]

Traceback (most recent call last): File "./oic_flow_tests.py", line 11, in from oictest.graph import Node, flatten File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/init.py", line 16, in from oictest.check import CheckRegistrationResponse File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 233 rt = {val}

I think {val} and {"code"} are not legal python dictionaries. Try {val: 0}, {"code": 0}

They are set constructors, which doesn’t work for you because it appeared in 2.7 and you’re using 2.6. I should add that requirement to setup.py .

— Roland

”Being able to think like a child is an important attribute of being an adult” - Eddie Izzard

rohe avatar Dec 07 '14 06:12 rohe