Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netaddr-0.7.9: Test failure with Python 3 #35

Closed
Arfrever opened this issue Aug 29, 2012 · 2 comments
Closed

netaddr-0.7.9: Test failure with Python 3 #35

Arfrever opened this issue Aug 29, 2012 · 2 comments

Comments

@Arfrever
Copy link

All tests pass in netaddr-0.7.7 with Python 3.1 and 3.2.
1 test fails in netaddr-0.7.9 with Python 3.2 (and 3.1 after fixing issue #34).
netaddr/tests/3.x/ip/multicast.txt has not changed between netaddr-0.7.7 and netaddr-0.7.9, so this is not a problem in test itself.

$ python3.2 netaddr/tests/__init__.py
testdir: /tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/tutorial.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/abbreviated.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/multicast.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/platform_darwin.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/sets.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/functions.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/nmap.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/matches.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/boundaries.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/subnet.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/ipglob.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/socket_fallback.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/binops.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/intset.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/platform_win32.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/formats.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/platform_linux2.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/iprange.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/pickling.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/constructor.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/cidr.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/rfc1924.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/eui/tutorial.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/eui/pubsub.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/eui/eui64.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/eui/eui.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/strategy/ipv6.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/strategy/eui48.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/strategy/ipv4.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/core/pubsub.txt
/tmp/netaddr-0.7.9/netaddr/tests/3.x/core/compat.txt
..F..........................
======================================================================
FAIL: /tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/multicast.txt
Doctest: multicast.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.2/doctest.py", line 2153, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for multicast.txt
  File "/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/multicast.txt", line 0

----------------------------------------------------------------------
File "/tmp/netaddr-0.7.9/netaddr/tests/3.x/ip/multicast.txt", line 27, in multicast.txt
Failed example:
    ip.info.Multicast[0].address
Expected:
    '224.0.1.0-224.0.1.255'
Got:
    '224.0.1.173'


----------------------------------------------------------------------
Ran 29 tests in 1.726s

FAILED (failures=1)
@drkjam
Copy link
Collaborator

drkjam commented Aug 29, 2012

Thanks for the bug report, fixed in the repo. Next release out soon (out of time today).

@drkjam
Copy link
Collaborator

drkjam commented Sep 6, 2012

Available in netaddr 0.7.10

@drkjam drkjam closed this as completed Sep 6, 2012
@snordhausen snordhausen modified the milestone: 0.7.11 Feb 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants