#  tests for pywin32-304-py39h99910a6_2 (this is a generated file);
print('===== testing package: pywin32-304-py39h99910a6_2 =====');
print('running run_test.py');
#  --- run_test.py (begin) ---
"""
Full module list obtained from: http://timgolden.me.uk/pywin32-docs/win32_modules.html

Skipped modules:

_winxptheme: private module
wincerapi: interface to the win32 CE Remote API
"""

import platform
import sys

if platform.system() != "Windows":
    print("nothing to see here!")
elif (platform.system() == "Windows") and (platform.python_implementation() == 'PyPy'):
    print("no pywin32 for pypy on windows!")
else:
    import mmapfile
    import odbc
    import perfmon
    import pywintypes
    import servicemanager
    import timer
    import win2kras
    import win32api
    import win32clipboard
    import win32console
    import win32cred
    import win32crypt
    import win32event
    import win32evtlog
    import win32file
    import win32gui
    import win32help
    import win32inet
    import win32job
    import win32lz
    import win32net
    import win32pdh
    import win32pipe
    import win32print
    import win32process
    import win32profile
    import win32ras
    import win32security
    import win32service
    import win32transaction
    import win32ts
    import win32ui
    import win32wnet

    import os
    import glob

    conda_py = str(os.sys.version_info.major) + str(os.sys.version_info.minor)

    print(
        list(
            glob.glob(
                os.path.join(
                    os.environ["LIBRARY_BIN"],
                    'py*.dll'
                )
            )
        )
    )

    pythoncom_filename = os.environ["LIBRARY_BIN"] + "\pythoncom" + conda_py + ".dll"
    pywintypes_filename = os.environ["LIBRARY_BIN"] + "\pywintypes" + conda_py + ".dll"

    assert os.path.isfile(pythoncom_filename), pythoncom_filename
    assert os.path.isfile(pywintypes_filename), pywintypes_filename
#  --- run_test.py (end) ---

print('===== pywin32-304-py39h99910a6_2 OK =====');
