Ticket #311 (assigned defect)
IPv6 tests fails if we pass tuple
| Reported by: | getxsick | Owned by: | kosma |
|---|---|---|---|
| Priority: | medium | Milestone: | UMPA 0.4.0 - autogeneration+IPv6 |
| Component: | UMPA | Version: | current svn |
| Keywords: | ipv6 | Cc: |
Description
TestIPv6AddrField.test_set for this testcase:
check((0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF))
As ignotus mention the problem is that 0xFFFF == 65535 and UMPA handles 65535 as 0x65535 what gives in result 415029
Of course it's wrong.
The buggy code is in IPAddrField._is_valid(), propably line:
i_base = int(i, self.base)
self.base == 16 and so on. But we need it for other cases. More invastigation is needed.
Change History
Note: See
TracTickets for help on using
tickets.
