<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 12/13/2013 05:17 AM, Yuriy Taraday
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABocrW6VSVLrAkgy0pL0CD_JM6AE95CeQ2J+pA0SSi9vnSjwyw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello, Adam.
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Dec 10, 2013 at 6:55 PM, Adam
            Young <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:ayoung@redhat.com" target="_blank">ayoung@redhat.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div class="im">
                  <div><span style="color:rgb(34,34,34)">With only a
                      change to the import and requirements, it builds
                      and runs, but raises:</span><br>
                  </div>
                </div>
                <br>
                <br>
                Traceback (most recent call last):<br>
                  File "keystone/tests/test_revoke.py", line 65, in
                test_list_is_sorted<br>
                    valid_until=valid_until))<br>
                  File "keystone/contrib/revoke/core.py", line 74, in
                __init__<br>
                    setattr(self, k, v)<br>
                  File "keystone/contrib/revoke/core.py", line 82, in
                scope_type<br>
                    self._scope_type = ScopeType[value]<br>
                  File
                "/opt/stack/keystone/.venv/lib/python2.7/site-packages/enum/__init__.py",

                line 352, in __getitem__<br>
                    return cls._member_map_[name]<br>
                KeyError: 1<br>
              </div>
            </blockquote>
          </div>
          <div><br>
          </div>
          <div>Looks like you're doing this the wrong way. Python 3.4's
            enums work either as EnumClass(value) or as EnumClass[name],
            not as EnumClass[value] as it seems your test is doing and
            flufl is allowing it to.</div>
          <div><br>
          </div>
          -- <br>
          <br>
          <div>Kind regards, Yuriy.</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    Yep,  figured that out, but thanks for the pointer.<br>
  </body>
</html>