google / ipaddr-py

Google's Python IP address manipulation library
Apache License 2.0
194 stars 71 forks source link

Test warnings with python3.2 #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run 2to3 from python2.7 on ipaddr.py and ipaddr_test.py
2. Run python3 ipaddr_test.py
3. Observe results

What is the expected output? What do you see instead?
Expect to see:
...................................................................
----------------------------------------------------------------------
Ran 67 tests in 0.127s

Got:
........./tmp/buildd/python-ipaddr-2.1.8/ipaddr_test.py:908: 
DeprecationWarning: Please use assertEqual instead.
  self.assertEquals(compressed, str(ipaddr.IPv6Network(uncompressed)))
.../tmp/buildd/python-ipaddr-2.1.8/ipaddr_test.py:678: DeprecationWarning: 
Please use assertNotEqual instead.
  self.assertNotEquals(v4mapped_ipv6.ip, ipv4.ip)
...................................................../tmp/buildd/python-ipaddr-2
.1.8/ipaddr_test.py:233: DeprecationWarning: Please use assertTrue instead.
  self.assert_(ipv4_zero_netmask._is_valid_netmask(str(0)))
..
----------------------------------------------------------------------
Ran 67 tests in 0.134s

What version of the product are you using? On what operating system?
2.1.8 on Ubuntu Natty

Original issue reported on code.google.com by sc...@kitterman.com on 14 Feb 2011 at 2:14

GoogleCodeExporter commented 9 years ago
test r220

Original comment by pmo...@google.com on 20 Feb 2011 at 7:08

GoogleCodeExporter commented 9 years ago
marking fixed.

Original comment by pmo...@google.com on 23 Feb 2011 at 4:23

GoogleCodeExporter commented 9 years ago
Confirmed fixed using python3.2 final.  Thanks.

Original comment by sc...@kitterman.com on 23 Feb 2011 at 2:04