Commit ebedd2e
authored
Remove Outdated Python 2.3 Compatibility and Unused Test Utilities. (#916)
* test: Simplify `test_subinterface.py`
Remove unused `sys` import and `test_main` function.
Streamline `ctypes` imports for better clarity.
* refactor: Remove unused test utilities from `test/__init__.py`
Remove `is_resource_enabled` and `requires` functions to simplify test setup.
* refactor: Remove Python 2.3 compatibility for `__name__` assignment.
Removes a `try...except TypeError` block related to `__name__` assignment
in `client/lazybind.py`. This compatibility code for Python 2.3's read-only
`__name__` attribute is no longer necessary in modern Python versions,
simplifying the codebase.1 parent e2c65cc commit ebedd2e
3 files changed
Lines changed: 3 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 162 | + | |
167 | 163 | | |
168 | 164 | | |
169 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 40 | | |
55 | 41 | | |
56 | 42 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 43 | | |
72 | 44 | | |
73 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 4 | + | |
12 | 5 | | |
13 | 6 | | |
14 | 7 | | |
| |||
0 commit comments