Commit 9126c8c
authored
(A part of) Remove Internet Explorer dependencies from tests. (#888)
* test: Remove commented-out debug prints from `test_casesensitivity.py`.
Removes old, commented-out `print` statements that were used for debugging
during development and are no longer needed. This cleans up the test file.
* test: Replace Internet Explorer COM objects with `MSVidCtlLib` in `test_casesensitivity.py`.
The `test_casesensitivity.py` file has been updated to remove its dependency
on Internet Explorer's `shdocvw.dll` COM objects. The test now uses
`MSVidCtlLib` interfaces instead. This is part of the ongoing effort to reduce
`comtypes`'s reliance on Internet Explorer components in tests.
* refactor: Rename `test_ie.py` to `test_eventinterface.py` for preparing IE-independent event testing.
The `test_ie.py` file is planned for refactoring to test `comtypes`' event handling
mechanism without relying on Internet Explorer. The primary goal is to
verify how `GetEvents` behaves when the `interface` argument is explicitly
specified versus when it is omitted, using an object that has multiple
outgoing event interfaces.
* docs: Add test perspective comments to `test_eventinterface.py`.
* build: Update ruff ignores for renamed test file.
In `pyproject.toml`, the `per-file-ignores` configuration for ruff
has been updated. The entry for `comtypes/test/test_ie.py` is
changed to `comtypes/test/test_eventinterface.py` to reflect the
recent file rename.1 parent ece82ed commit 9126c8c
File tree
3 files changed
+18
-25
lines changed- comtypes/test
3 files changed
+18
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
23 | 17 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 18 | + | |
| 19 | + | |
30 | 20 | | |
31 | 21 | | |
32 | 22 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
36 | 26 | | |
37 | | - | |
38 | | - | |
| 27 | + | |
| 28 | + | |
39 | 29 | | |
40 | 30 | | |
41 | 31 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments