From 802c9efaa3e92f9040713b4a9703e548dbef1f60 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 25 Jul 2017 15:10:58 -0700 Subject: [PATCH] Disable abstract-class-instantiated for smoketests These tests are actually checking that the classes will error out if they are still abstracted and instantiated --- test/units/plugins/cache/test_cache.py | 4 ++-- test/units/plugins/connection/test_connection.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/units/plugins/cache/test_cache.py b/test/units/plugins/cache/test_cache.py index 52d7d1a71c..0fd14682e8 100644 --- a/test/units/plugins/cache/test_cache.py +++ b/test/units/plugins/cache/test_cache.py @@ -78,14 +78,14 @@ class TestAbstractClass(unittest.TestCase): class CacheModule1(BaseCacheModule): pass with self.assertRaises(TypeError): - CacheModule1() + CacheModule1() # pylint: disable=abstract-class-instantiated class CacheModule2(BaseCacheModule): def get(self, key): super(CacheModule2, self).get(key) with self.assertRaises(TypeError): - CacheModule2() + CacheModule2() # pylint: disable=abstract-class-instantiated def test_subclass_success(self): class CacheModule3(BaseCacheModule): diff --git a/test/units/plugins/connection/test_connection.py b/test/units/plugins/connection/test_connection.py index 39fffef52e..99e114e6ac 100644 --- a/test/units/plugins/connection/test_connection.py +++ b/test/units/plugins/connection/test_connection.py @@ -56,14 +56,14 @@ class TestConnectionBaseClass(unittest.TestCase): class ConnectionModule1(ConnectionBase): pass with self.assertRaises(TypeError): - ConnectionModule1() + ConnectionModule1() # pylint: disable=abstract-class-instantiated class ConnectionModule2(ConnectionBase): def get(self, key): super(ConnectionModule2, self).get(key) with self.assertRaises(TypeError): - ConnectionModule2() + ConnectionModule2() # pylint: disable=abstract-class-instantiated def test_subclass_success(self): class ConnectionModule3(ConnectionBase):