From af1b58c24320efb78bee80a541c8f703f99696a2 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 30 May 2016 01:30:02 -0400 Subject: Use teardown since we ignore the method arg anyways (#2928) --- tests/hazmat/backends/test_openssl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/hazmat') diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index a24f8ecd..2d09787b 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -208,7 +208,6 @@ class TestOpenSSL(object): class TestOpenSSLRandomEngine(object): - def setup(self): # The default RAND engine is global and shared between # tests. We make sure that the default engine is osrandom @@ -218,7 +217,7 @@ class TestOpenSSLRandomEngine(object): name = backend._lib.ENGINE_get_name(current_default) assert name == backend._binding._osrandom_engine_name - def teardown_method(self, method): + def teardown(self): # we need to reset state to being default. backend is a shared global # for all these tests. backend.activate_osrandom_engine() -- cgit v1.2.3