diff --git a/oslo_utils/tests/test_netutils.py b/oslo_utils/tests/test_netutils.py index 405903b8..48ca163a 100644 --- a/oslo_utils/tests/test_netutils.py +++ b/oslo_utils/tests/test_netutils.py @@ -94,7 +94,7 @@ class NetworkUtilsTest(test_base.BaseTestCase): self.assertEqual(result.netloc, 'user:pass@[::1]') self.assertEqual(result.path, '/v2.0/') self.assertEqual(result.hostname, '::1') - self.assertEqual(result.port, None) + self.assertIsNone(result.port) ipv6_url = 'https://[2001:db8:85a3::8a2e:370:7334]:1234/v2.0/xy?ab#12' result = netutils.urlsplit(ipv6_url)