Ticket #2744: enum_with_duplicated_values_unittest.patch

File enum_with_duplicated_values_unittest.patch, 651 bytes (added by hugo.lima@…, 14 years ago)

Patch to the unit test

  • libs/python/test/enum.cpp

     
    1212#endif
    1313using namespace boost::python;
    1414
    15 enum color { red = 1, green = 2, blue = 4 };
     15enum color { red = 1, green = 2, blue = 4, blood = 1 };
    1616
    1717#if BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
    1818namespace boost  // Pro7 has a hard time detecting enums
     
    3434        .value("red", red)
    3535        .value("green", green)
    3636        .value("blue", blue)
     37        .value("blood", blood)
    3738        .export_values()
    3839        ;
    3940