Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move win32com stuff from test_dispinterface to test_comserver_pywin32. #692

Closed
wants to merge 6 commits into from

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Dec 8, 2024

No description provided.

Stacktrace example:
Traceback (most recent call last):
  File "...\Lib\site-packages\win32com\client\gencache.py", line 261, in GetModuleForCLSID
    __import__(sub_mod_name)
ModuleNotFoundError: No module named 'win32com.gen_py.6BAA1C79-4BA0-47F2-9AD7-D2FFB1C0F3E3x0x1x0.DTestDispServer'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "...\comtypes\test\test_comserver_pywin32.py", line 100, in test_win32com_ensure_dispatch
    d = EnsureDispatch("TestDispServerLib.TestDispServer")
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\Lib\site-packages\win32com\client\gencache.py", line 636, in EnsureDispatch
    GetModuleForCLSID(disp_clsid)
  File "...\Lib\site-packages\win32com\client\gencache.py", line 270, in GetModuleForCLSID
    makepy.GenerateChildFromTypeLibSpec(sub_mod, info)
  File "...\Lib\site-packages\win32com\client\makepy.py", line 374, in GenerateChildFromTypeLibSpec
    __import__("win32com.gen_py." + dir_name + "." + child)
  File "...\gen_py\3.11\6BAA1C79-4BA0-47F2-9AD7-D2FFB1C0F3E3x0x1x0\DTestDispServer.py", line 28, in <module>
    class DTestDispServer(DispatchBaseClass):
  File "...\gen_py\3.11\6BAA1C79-4BA0-47F2-9AD7-D2FFB1C0F3E3x0x1x0\DTestDispServer.py", line 48, in DTestDispServer
    def do_cy(self, value=Decimal('32.78')):
                          ^^^^^^^
NameError: name 'Decimal' is not defined
@junkmd junkmd added the tests enhance or fix tests label Dec 8, 2024
@junkmd junkmd added this to the 1.4.9 milestone Dec 8, 2024
@junkmd
Copy link
Collaborator Author

junkmd commented Dec 8, 2024

It didn’t work, so I will reconsider the approach.

@junkmd junkmd closed this Dec 8, 2024
@junkmd junkmd deleted the comserver_pywin32_dispifc branch December 8, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests enhance or fix tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant