Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2744: boost::python does not support enums with duplicated values.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-17 20:20:32
#2744: boost::python does not support enums with duplicated values.
--------------------------------------+-------------------------------------
Reporter: hugo.lima_at_[hidden] | Owner: dave
Type: Patches | Status: assigned
Milestone: Boost 1.39.0 | Component: Python
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: boost python enum
--------------------------------------+-------------------------------------
Comment(by dave):
The new test seems to fail even after application of the patch v2.2:
{{{
#!python
running...
**********************************************************************
File "enum.py", line 7, in __main__
Failed example:
identity(color.red)
Expected:
enum_ext.color.red
Got:
enum_ext.color.blood
**********************************************************************
File "enum.py", line 16, in __main__
Failed example:
identity(color(1))
Expected:
enum_ext.color.red
Got:
enum_ext.color.blood
**********************************************************************
File "enum.py", line 30, in __main__
Failed example:
identity(red)
Exception raised:
Traceback (most recent call last):
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1212, in __run
compileflags, 1) in test.globs
File "<doctest __main__[8]>", line 1, in <module>
identity(red)
NameError: name 'red' is not defined
**********************************************************************
File "enum.py", line 44, in __main__
Failed example:
c.x
Expected:
enum_ext.color.red
Got:
enum_ext.color.blood
**********************************************************************
1 items had failures:
4 of 20 in __main__
***Test Failed*** 4 failures.
}}}
Note that you can replace existing patches so obsolete ones don't pile
up in the ticket.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2744#comment:18> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC