Debian Codegraph @

extra_tests/ctypes_tests/test_win32.py

raw symbols SCIP
1 # Windows specific tests
2
3 from ctypes import *
4
5 import pytest
6
7 @pytest.mark.skipif("sys.platform != 'win32'")
8 def test_VARIANT():
9 from ctypes import wintypes
10 a = wintypes.VARIANT_BOOL()
11 assert a.value is False
12 b = wintypes.VARIANT_BOOL(3)
13 assert b.value is True