diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-04-29 00:03:40 (GMT) |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-04-29 00:03:40 (GMT) |
commit | 8af740c46a89f46d6a2f59869847724a5eaf3625 (patch) | |
tree | 4fbe7809cbdc62ab301047009c6bf224223c2631 /Lib/test | |
parent | 63aeb71909f3058ee69f6e39478f541a045c2fbd (diff) | |
download | cpython-8af740c46a89f46d6a2f59869847724a5eaf3625.zip cpython-8af740c46a89f46d6a2f59869847724a5eaf3625.tar.gz cpython-8af740c46a89f46d6a2f59869847724a5eaf3625.tar.bz2 |
fix isuse #13248: remove previously deprecated asyncore.dispatcher __getattr__ cheap inheritance hack.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncore.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index 5aaedf3..b04aa1d 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -316,23 +316,6 @@ class DispatcherTests(unittest.TestCase): 'warning: unhandled connect event'] self.assertEqual(lines, expected) - def test_issue_8594(self): - # XXX - this test is supposed to be removed in next major Python - # version - d = asyncore.dispatcher(socket.socket()) - # make sure the error message no longer refers to the socket - # object but the dispatcher instance instead - self.assertRaisesRegex(AttributeError, 'dispatcher instance', - getattr, d, 'foo') - # cheap inheritance with the underlying socket is supposed - # to still work but a DeprecationWarning is expected - with warnings.catch_warnings(record=True) as w: - warnings.simplefilter("always") - family = d.family - self.assertEqual(family, socket.AF_INET) - self.assertEqual(len(w), 1) - self.assertTrue(issubclass(w[0].category, DeprecationWarning)) - def test_strerror(self): # refers to bug #8573 err = asyncore._strerror(errno.EPERM) |