Commit df09162
committed
Attempt to fix regression in unit test
Fix the following issue:
> UnboundLocalError: cannot access local variable 'JSON' where it is
> not associated with a value
This, however, yields another problem:
```plain
> load = CLASS_TO_LOAD_FUNC[cls]
E KeyError: <class 'tests.unit.v1.test_union_as_type_alias_recursive.test_union_as_type_alias_recursive.<locals>.MyTestClass'>
During handling of the above exception, another exception occurred:
[…]
E NameError: name 'JSON' is not defined
```1 parent cc95699 commit df09162
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments