Codegen requires presence of an 0-10 spec
-----------------------------------------

                 Key: QPID-1562
                 URL: https://issues.apache.org/jira/browse/QPID-1562
             Project: Qpid
          Issue Type: Bug
          Components: Python Client
    Affects Versions: M4
            Reporter: Gordon Sim
            Assignee: Rafael H. Schloming


>From r732760 the python test suite cannot be run without either the spec 
>refered to from qpid_config available in the expected location or the 
>AMQP_SPEC env var set to an 0-10 format spec.

Setting AMQP_SPEC to an 0-8 format spec file causes:

Traceback (most recent call last):
  File "./run-tests", line 22, in ?
    from qpid.testlib import testrunner
  File "/home/gordon/temp/python/qpid/__init__.py", line 20, in ?
    import spec, codec, connection, content, peer, delegate, client
  File "/home/gordon/temp/python/qpid/connection.py", line 20, in ?
    import datatypes, session, socket
  File "/home/gordon/temp/python/qpid/session.py", line 47, in ?
    class Session(command_invoker(SPEC)):
  File "/home/gordon/temp/python/qpid/generator.py", line 56, in command_invoker
    return invoker("CommandInvoker", spec, is_command)
  File "/home/gordon/temp/python/qpid/generator.py", line 52, in invoker
    (), generate(spec, invoker.__module__, predicate))
  File "/home/gordon/temp/python/qpid/generator.py", line 35, in generate
    for name, enum in spec.enums.items():
AttributeError: Spec instance has no attribute 'enums'


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to