Files
macports-ports/python/py-parameterized/files/patch-test.py.diff
T
2020-01-26 20:20:06 -05:00

13 lines
528 B
Diff

--- parameterized/test.py.orig 2020-01-26 19:24:57.000000000 -0500
+++ parameterized/test.py 2020-01-26 19:25:17.000000000 -0500
@@ -249,7 +249,8 @@
f_locals = stack[3][0].f_locals
test_method = (
f_locals.get("testMethod") or # Py27
- f_locals.get("function") # Py33
+ f_locals.get("function") or # Py33
+ f_locals.get("method") # Py38
)
if test_method is None:
raise AssertionError("uh oh, unittest changed a local variable name")