Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Jun 1, 2024
1 parent 0bb86c8 commit 24e0474
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/autotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [main]

env:
REQUIRES_TEST_DOUBLE_COMSERVER: 'true'

jobs:
unit-tests:
runs-on: ${{ matrix.os }}
Expand Down
5 changes: 4 additions & 1 deletion comtypes/test/test_dispifc_records.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# coding: utf-8

import os
import unittest

from comtypes import CLSCTX_LOCAL_SERVER
Expand All @@ -13,7 +14,9 @@
import comtypes.gen.ComtypesCppTestSrvLib as ComtypesCppTestSrvLib

IMPORT_FAILED = False
except (ImportError, OSError):
except (ImportError, OSError) as e:
if os.environ.get("REQUIRES_TEST_DOUBLE_COMSERVER") == "true":
raise RuntimeError("This depends on the out of process COM-server.") from e
IMPORT_FAILED = True


Expand Down

0 comments on commit 24e0474

Please sign in to comment.