Skip to content

Commit 4d07169

Browse files
committed
Remove code for Python 3.7
1 parent f860e47 commit 4d07169

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

pyperformance/tests/__init__.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,27 +145,6 @@ def decorator(func):
145145
return func
146146

147147

148-
class Compat:
149-
"""A mixin that lets older Pythons use newer unittest features."""
150-
151-
if sys.version_info < (3, 8):
152-
153-
@classmethod
154-
def setUpClass(cls):
155-
super().setUpClass()
156-
cls._cleanups = []
157-
158-
@classmethod
159-
def tearDownClass(cls):
160-
super().tearDownClass()
161-
for cleanup in cls._cleanups:
162-
cleanup()
163-
164-
@classmethod
165-
def addClassCleanup(cls, cleanup):
166-
cls._cleanups.append(cleanup)
167-
168-
169148
#############################
170149
# functional tests
171150

@@ -181,7 +160,7 @@ def SLOW(f):
181160
return unittest.skip("way too slow")(mark("slow", f))
182161

183162

184-
class Functional(Compat):
163+
class Functional:
185164
"""A mixin for functional tests.
186165
187166
In this context, "functional" means the test touches the filesystem,

0 commit comments

Comments
 (0)