Ticket #311 (assigned defect)

Opened 4 years ago

Last modified 3 years ago

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

Changed 4 years ago by getxsick

  • keywords ipv6 added

Changed 3 years ago by kosma

  • owner changed from getxsick to kosma
  • status changed from new to assigned
  • milestone set to UMPA 0.4.0 - autogeneration+IPv6
Note: See TracTickets for help on using tickets.