enthought / enthought/comtypes
Tests are broken?
- Dominant language
- Python
- Stars
- 345
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to run the tests, but I can't. Is anyone able to run the tests successfully? I'm on Windows 10 using python 3.10 64 bit.
Here's some of the issues I'm having. They might belong in separate issues here or they might all be because the tests just don't run on python 3. Hopefully we can figure that out.
1. Getting multiple `NameError: name 'basestring' is not defined` errors from the following line. I guess this is the same issue we talk about with long integers in PR #259.
2. `test_avmc.py` fails like so:
```python
Error
Traceback (most recent call last):
File "C:\Users\dustin\PycharmProjects\comtypes\comtypes\test\test_avmc.py", line 9, in test
avmc = CreateObject("AvmcIfc.Avmc.1")
File "C:\Users\dustin\PycharmProjects\comtypes\comtypes\client\__init__.py", line 227, in CreateObject
clsid = comtypes.GUID.from_progid(progid)
File "C:\Users\dustin\PycharmProjects\comtypes\comtypes\GUID.py", line 85, in from_progid
_CLSIDFromProgID(text_type(progid), byref(inst))
File "_ctypes/callproc.c", line 993, in GetResult
OSError: [WinError -2147221005] Invalid class string
```
3. The tests `test_leaks_1`, `test_leaks_2`, `test_leaks_3` in `test_collections.py` take almost 7 minutes to complete on my very beefy machine and `test_leaks_2` fails with `AssertionError: 688128 is not false : Leaks 688128 bytes`.
4. Some tests fail with:
```python
comtypes.test.ResourceDenied: Use of the `events' resource not enabled
```
5. Some tests fail with:
```python
comtypes.test.ResourceDenied: Use of the `ui' resource not enabled
```
There's a lot more failures but I'll get to posting them if we can make any progress on fixing these.
Contributor guide
Assessment
This issue has not been assessed yet.