1 diff --git a/test/compliancetest.py b/test/compliancetest.py
2 index bf4e59c..f55e258 100644
3 --- a/test/compliancetest.py
4 +++ b/test/compliancetest.py
5 @@ -6,18 +6,19 @@ import lockfile
8 class ComplianceTest(object):
10 - self.saved_class = lockfile.LockFile
12 + def setup_class(cls):
13 + cls.saved_class = lockfile.LockFile
16 """Return platform-appropriate file. Helper for tests."""
18 return os.path.join(tempfile.gettempdir(), 'trash-%s' % os.getpid())
21 + def setup_method(self):
22 lockfile.LockFile = self.class_to_test
25 + def teardown_method(self):