[Python-checkins] [python/cpython] cf58df: [3.6] bpo-29931 fix __lt__ check in ipaddress.ip_i...

GitHub noreply at github.com
Thu Jun 15 10:16:40 EDT 2017


  Branch: refs/heads/3.6
  Home:   https://github.com/python/cpython
  Commit: cf58dfb44cc11d41ea1473cd7436618b210b8258
      https://github.com/python/cpython/commit/cf58dfb44cc11d41ea1473cd7436618b210b8258
  Author: Serhiy Storchaka <storchaka at gmail.com>
  Date:   2017-06-15 (Thu, 15 Jun 2017)

  Changed paths:
    M Lib/ipaddress.py
    M Lib/test/test_ipaddress.py
    M Misc/NEWS

  Log Message:
  -----------
  [3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879) (#2217)

the original logic was just comparing the network address
but this is wrong because if the network address is equal then
we need to compare the ip address for breaking the tie

add more ip_interface comparison tests.
(cherry picked from commit 7bd8d3e794782582a4ad1c9749424fff86802c3e)




More information about the Python-checkins mailing list