rohe / oictest

OAuth2 and OpenID Connect test tools
Other
39 stars 21 forks source link

Invalid Dictionary Syntax in check.py #25

Open nynymike opened 9 years ago

nynymike commented 9 years ago

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}

rohe commented 9 years ago

7 dec 2014 kl. 06:50 skrev Mike Schwartz notifications@github.com:

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