Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#206 Error handling of enum serialization broken

v2.0
closed-fixed
zsi (169)
5
2007-10-31
2007-05-23
Peter Rostin
No

If the serialization routine is called with an incorrect enum value it does not generate the appropriate exception (it references an undefined variable instead).

Suggested patch (to 2.0) and a unit test are attached.

Discussion

  • Peter Rostin
    Peter Rostin
    2007-05-23

    Patch for problem with enum serialization error

     
    Attachments
  • Peter Rostin
    Peter Rostin
    2007-05-23

    Unittest for the bug

     
    Attachments
  • Peter Rostin
    Peter Rostin
    2007-05-23

    Logged In: YES
    user_id=1800119
    Originator: YES

    File Added: testenum.py

     
    • assigned_to: nobody --> boverhof
    • status: open --> open-fixed
     
  • Logged In: YES
    user_id=711996
    Originator: NO

    FIxed, thanks for reporting it.

    $ svn log -r 1409
    ------------------------------------------------------------------------
    r1409 | boverhof | 2007-07-17 15:40:51 -0700 (Tue, 17 Jul 2007) | 4 lines

    M test/test_t1.py
    M ZSI/TC.py
    FIX BUG [ 1724481 ] Error handling of enum serialization broken

    ------------------------------------------------------------------------

     
    • status: open-fixed --> closed-fixed