You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-07-10 12:19:27 -07:00
13 lines
528 B
Diff
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")
|