summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_abc.py
diff options
context:
space:
mode:
authorAaron Hall, MBA <aaronchall@yahoo.com>2017-06-06 19:34:57 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-06-06 19:34:57 (GMT)
commitff48739ed0a3f366c4d56d3c86a37cbdeec600de (patch)
tree8fb90607c6db799e328cd8a9a52e6905f29b876e /Lib/test/test_abc.py
parentec19ba210bba2c3097232a05d7dbe093beb5f833 (diff)
downloadcpython-ff48739ed0a3f366c4d56d3c86a37cbdeec600de.zip
cpython-ff48739ed0a3f366c4d56d3c86a37cbdeec600de.tar.gz
cpython-ff48739ed0a3f366c4d56d3c86a37cbdeec600de.tar.bz2
bpo-30463: Add an empty __slots__ to abc.ABC.
Diffstat (limited to 'Lib/test/test_abc.py')
-rw-r--r--Lib/test/test_abc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_abc.py b/Lib/test/test_abc.py
index e20e033..61c2876 100644
--- a/Lib/test/test_abc.py
+++ b/Lib/test/test_abc.py
@@ -402,6 +402,9 @@ class TestABC(unittest.TestCase):
C()
self.assertEqual(B.counter, 1)
+ def test_ABC_has___slots__(self):
+ self.assertTrue(hasattr(abc.ABC, '__slots__'))
+
class TestABCWithInitSubclass(unittest.TestCase):
def test_works_with_init_subclass(self):