py2docfx 0.1.13.dev2016838__py3-none-any.whl → 0.1.13.dev2021865__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +22 -26
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +21 -73
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +11 -17
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +8 -11
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +14 -41
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +57 -12
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +7 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +11 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +19 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +5 -7
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +13 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +1 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +4 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +1178 -78
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +17 -21
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +6 -18
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +8 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +6 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +17 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +32 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +8 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +2 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +14 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +16 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +10 -11
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +304 -121
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +4926 -604
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +194 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +4 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +13 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +12 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +16 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +24 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +23 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +3 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +97 -65
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +24 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +17 -33
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +14 -14
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +50 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +48 -56
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +2 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +9 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +20 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +4 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +5 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +2 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +40 -57
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +143 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +1 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -20
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +2 -8
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +16 -12
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +7 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +2 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +5 -10
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -1
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +77 -122
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +4 -9
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/METADATA +1 -1
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/RECORD +342 -330
- py2docfx/venv/venv1/Lib/site-packages/docs/conf.py +0 -384
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/mdi_pychecker.py +0 -850
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testNetscape.py +0 -24
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
"""
|
1
|
+
"""Unit tests version 2.6.1.0 for adodbapi"""
|
2
2
|
|
3
3
|
"""
|
4
4
|
adodbapi - A python DB API 2.0 interface to Microsoft ADO
|
@@ -27,25 +27,15 @@ import datetime
|
|
27
27
|
import decimal
|
28
28
|
import random
|
29
29
|
import string
|
30
|
-
import sys
|
31
30
|
import time
|
32
31
|
import unittest
|
33
32
|
|
34
33
|
import adodbapitestconfig as config # run the configuration module. # will set sys.path to find correct version of adodbapi
|
35
34
|
import tryconnection # in our code below, all our switches are from config.whatever
|
36
|
-
import win32com.client
|
37
35
|
|
38
36
|
import adodbapi
|
39
37
|
import adodbapi.apibase as api
|
40
38
|
|
41
|
-
try:
|
42
|
-
import adodbapi.ado_consts as ado_consts
|
43
|
-
except ImportError: # we are doing a shortcut import as a module -- so
|
44
|
-
try:
|
45
|
-
import ado_consts
|
46
|
-
except ImportError:
|
47
|
-
from adodbapi import ado_consts
|
48
|
-
|
49
39
|
|
50
40
|
def randomstring(length):
|
51
41
|
return "".join([random.choice(string.ascii_letters) for n in range(32)])
|
@@ -189,49 +179,6 @@ class CommonDBTests(unittest.TestCase):
|
|
189
179
|
pass
|
190
180
|
self.helpRollbackTblTemp()
|
191
181
|
|
192
|
-
def testUserDefinedConversionForExactNumericTypes(self):
|
193
|
-
# variantConversions is a dictionary of conversion functions
|
194
|
-
# held internally in adodbapi.apibase
|
195
|
-
#
|
196
|
-
# !!! this test intentionally alters the value of what should be constant in the module
|
197
|
-
# !!! no new code should use this example, to is only a test to see that the
|
198
|
-
# !!! deprecated way of doing this still works. (use connection.variantConversions)
|
199
|
-
#
|
200
|
-
if sys.version_info < (3, 0): ### Py3 need different test
|
201
|
-
oldconverter = adodbapi.variantConversions[
|
202
|
-
ado_consts.adNumeric
|
203
|
-
] # keep old function to restore later
|
204
|
-
# By default decimal and "numbers" are returned as decimals.
|
205
|
-
# Instead, make numbers return as floats
|
206
|
-
try:
|
207
|
-
adodbapi.variantConversions[ado_consts.adNumeric] = adodbapi.cvtFloat
|
208
|
-
self.helpTestDataType(
|
209
|
-
"decimal(18,2)", "NUMBER", 3.45, compareAlmostEqual=1
|
210
|
-
)
|
211
|
-
self.helpTestDataType(
|
212
|
-
"numeric(18,2)", "NUMBER", 3.45, compareAlmostEqual=1
|
213
|
-
)
|
214
|
-
# now return strings
|
215
|
-
adodbapi.variantConversions[ado_consts.adNumeric] = adodbapi.cvtString
|
216
|
-
self.helpTestDataType("numeric(18,2)", "NUMBER", "3.45")
|
217
|
-
# now a completly weird user defined convertion
|
218
|
-
adodbapi.variantConversions[ado_consts.adNumeric] = (
|
219
|
-
lambda x: "!!This function returns a funny unicode string %s!!" % x
|
220
|
-
)
|
221
|
-
self.helpTestDataType(
|
222
|
-
"numeric(18,2)",
|
223
|
-
"NUMBER",
|
224
|
-
"3.45",
|
225
|
-
allowedReturnValues=[
|
226
|
-
"!!This function returns a funny unicode string 3.45!!"
|
227
|
-
],
|
228
|
-
)
|
229
|
-
finally:
|
230
|
-
# now reset the converter to its original function
|
231
|
-
adodbapi.variantConversions[ado_consts.adNumeric] = (
|
232
|
-
oldconverter # Restore the original convertion function
|
233
|
-
)
|
234
|
-
|
235
182
|
def helpTestDataType(
|
236
183
|
self,
|
237
184
|
sqlDataTypeString,
|
@@ -326,15 +273,16 @@ class CommonDBTests(unittest.TestCase):
|
|
326
273
|
rs = crsr.fetchone()
|
327
274
|
if allowedReturnValues:
|
328
275
|
allowedTypes = tuple([type(aRV) for aRV in allowedReturnValues])
|
329
|
-
assert isinstance(
|
330
|
-
rs[0], allowedTypes
|
331
|
-
)
|
276
|
+
assert isinstance(rs[0], allowedTypes), (
|
277
|
+
'result type "%s" must be one of %s' % (type(rs[0]), allowedTypes)
|
278
|
+
)
|
332
279
|
else:
|
333
|
-
assert isinstance(
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
280
|
+
assert isinstance(rs[0], type(pyData)), (
|
281
|
+
'result type "%s" must be instance of %s'
|
282
|
+
% (
|
283
|
+
type(rs[0]),
|
284
|
+
type(pyData),
|
285
|
+
)
|
338
286
|
)
|
339
287
|
|
340
288
|
if compareAlmostEqual and DBAPIDataTypeString == "DATETIME":
|
@@ -344,9 +292,9 @@ class CommonDBTests(unittest.TestCase):
|
|
344
292
|
elif compareAlmostEqual:
|
345
293
|
s = float(pyData)
|
346
294
|
v = float(rs[0])
|
347
|
-
assert (
|
348
|
-
|
349
|
-
)
|
295
|
+
assert abs(v - s) / s < 0.00001, (
|
296
|
+
"Values not almost equal recvd=%s, expected=%f" % (rs[0], s)
|
297
|
+
)
|
350
298
|
else:
|
351
299
|
if allowedReturnValues:
|
352
300
|
ok = False
|
@@ -432,7 +380,7 @@ class CommonDBTests(unittest.TestCase):
|
|
432
380
|
"bigint",
|
433
381
|
"NUMBER",
|
434
382
|
3000000000,
|
435
|
-
allowedReturnValues=[3000000000,
|
383
|
+
allowedReturnValues=[3000000000, 3000000000],
|
436
384
|
)
|
437
385
|
self.helpTestDataType("int", "NUMBER", 2147483647)
|
438
386
|
|
@@ -488,7 +436,7 @@ class CommonDBTests(unittest.TestCase):
|
|
488
436
|
)
|
489
437
|
|
490
438
|
def testDataTypeBinary(self):
|
491
|
-
binfld = b"\x07\x00\
|
439
|
+
binfld = b"\x07\x00\xe2\x40*"
|
492
440
|
arv = [binfld, adodbapi.Binary(binfld), bytes(binfld)]
|
493
441
|
if self.getEngine() == "PostgreSQL":
|
494
442
|
self.helpTestDataType(
|
@@ -693,9 +641,9 @@ class CommonDBTests(unittest.TestCase):
|
|
693
641
|
rec = crsr.fetchone()
|
694
642
|
# check that stepping through an emulated row works
|
695
643
|
for j in range(len(inParam)):
|
696
|
-
assert (
|
697
|
-
rec[j]
|
698
|
-
)
|
644
|
+
assert rec[j] == inParam[j], (
|
645
|
+
'returned value:"%s" != test value:"%s"' % (rec[j], inParam[j])
|
646
|
+
)
|
699
647
|
# check that we can get a complete tuple from a row
|
700
648
|
assert (
|
701
649
|
tuple(rec) == inParam
|
@@ -1136,7 +1084,7 @@ class TestADOwithSQLServer(CommonDBTests):
|
|
1136
1084
|
return self.conn
|
1137
1085
|
|
1138
1086
|
def getAnotherConnection(self, addkeys=None):
|
1139
|
-
keys =
|
1087
|
+
keys = config.connStrSQLServer[1].copy()
|
1140
1088
|
if addkeys:
|
1141
1089
|
keys.update(addkeys)
|
1142
1090
|
return config.dbSqlServerconnect(*config.connStrSQLServer[0], **keys)
|
@@ -1316,7 +1264,7 @@ class TestADOwithMySql(CommonDBTests):
|
|
1316
1264
|
return self.conn
|
1317
1265
|
|
1318
1266
|
def getAnotherConnection(self, addkeys=None):
|
1319
|
-
keys =
|
1267
|
+
keys = config.connStrMySql[1].copy()
|
1320
1268
|
if addkeys:
|
1321
1269
|
keys.update(addkeys)
|
1322
1270
|
return config.dbMySqlconnect(*config.connStrMySql[0], **keys)
|
@@ -1382,7 +1330,7 @@ class TestADOwithPostgres(CommonDBTests):
|
|
1382
1330
|
return self.conn
|
1383
1331
|
|
1384
1332
|
def getAnotherConnection(self, addkeys=None):
|
1385
|
-
keys =
|
1333
|
+
keys = config.connStrPostgres[1].copy()
|
1386
1334
|
if addkeys:
|
1387
1335
|
keys.update(addkeys)
|
1388
1336
|
return config.dbPostgresConnect(*config.connStrPostgres[0], **keys)
|
@@ -166,7 +166,7 @@ if doPostgresTest:
|
|
166
166
|
"Provider=MSDASQL;Driver={PostgreSQL Unicode(x64)}",
|
167
167
|
"Driver=PostgreSQL Unicode",
|
168
168
|
]
|
169
|
-
# get driver from
|
169
|
+
# get driver from https://www.postgresql.org/ftp/odbc/releases/
|
170
170
|
# test using positional and keyword arguments (bad example for real code)
|
171
171
|
print(" ...Testing PostgreSQL login to {}...".format(_computername))
|
172
172
|
doPostgresTest, connStrPostgres, dbPostgresConnect = tryconnection.try_connection(
|
@@ -1,20 +1,19 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
|
-
"""
|
2
|
+
"""Python DB API 2.0 driver compliance unit test suite.
|
3
3
|
|
4
|
-
|
4
|
+
This software is Public Domain and may be used without restrictions.
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
"Now we have booze and barflies entering the discussion, plus rumours of
|
7
|
+
DBAs on drugs... and I won't tell you what flashes through my mind each
|
8
|
+
time I read the subject line with 'Anal Compliance' in it. All around
|
9
|
+
this is turning out to be a thoroughly unwholesome unit test."
|
10
10
|
|
11
|
-
|
11
|
+
-- Ian Bicking
|
12
12
|
"""
|
13
13
|
|
14
14
|
__version__ = "$Revision: 1.15.0 $"[11:-2]
|
15
15
|
__author__ = "Stuart Bishop <stuart@stuartbishop.net>"
|
16
16
|
|
17
|
-
import sys
|
18
17
|
import time
|
19
18
|
import unittest
|
20
19
|
|
@@ -71,7 +70,7 @@ TEST_FOR_NON_IDEMPOTENT_CLOSE = False
|
|
71
70
|
# - Now a subclass of TestCase, to avoid requiring the driver stub
|
72
71
|
# to use multiple inheritance
|
73
72
|
# - Reversed the polarity of buggy test in test_description
|
74
|
-
# - Test exception
|
73
|
+
# - Test exception hierarchy correctly
|
75
74
|
# - self.populate is now self._populate(), so if a driver stub
|
76
75
|
# overrides self.ddl1 this change propogates
|
77
76
|
# - VARCHAR columns now have a width, which will hopefully make the
|
@@ -197,14 +196,9 @@ class DatabaseAPI20Test(unittest.TestCase):
|
|
197
196
|
self.fail("Driver doesn't define paramstyle")
|
198
197
|
|
199
198
|
def test_Exceptions(self):
|
200
|
-
# Make sure required exceptions exist, and are in the
|
201
|
-
|
202
|
-
|
203
|
-
self.assertTrue(issubclass(self.driver.Warning, Exception))
|
204
|
-
self.assertTrue(issubclass(self.driver.Error, Exception))
|
205
|
-
else:
|
206
|
-
self.failUnless(issubclass(self.driver.Warning, Exception))
|
207
|
-
self.failUnless(issubclass(self.driver.Error, Exception))
|
199
|
+
# Make sure required exceptions exist, and are in the defined hierarchy.
|
200
|
+
self.assertTrue(issubclass(self.driver.Warning, Exception))
|
201
|
+
self.assertTrue(issubclass(self.driver.Error, Exception))
|
208
202
|
|
209
203
|
self.assertTrue(issubclass(self.driver.InterfaceError, self.driver.Error))
|
210
204
|
self.assertTrue(issubclass(self.driver.DatabaseError, self.driver.Error))
|
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/python2
|
2
2
|
# Configure this in order to run the testcases.
|
3
3
|
"setuptestframework.py v 2.6.0.8"
|
4
|
+
|
4
5
|
import os
|
5
6
|
import shutil
|
6
7
|
import tempfile
|
@@ -55,7 +56,7 @@ def makeadopackage(testfolder):
|
|
55
56
|
shutil.copy(os.path.join(adoPath, f), newpackage)
|
56
57
|
return testfolder
|
57
58
|
else:
|
58
|
-
raise OSError("
|
59
|
+
raise OSError("Cannot find source of adodbapi to test.")
|
59
60
|
|
60
61
|
|
61
62
|
def makemdb(testfolder, mdb_name):
|
@@ -10,12 +10,12 @@ import shutil
|
|
10
10
|
import stat
|
11
11
|
import sys
|
12
12
|
import traceback
|
13
|
+
from collections.abc import Mapping
|
13
14
|
|
14
15
|
import pythoncom
|
15
16
|
import win32api
|
16
17
|
import winerror
|
17
|
-
from win32com.client import
|
18
|
-
from win32com.client.gencache import EnsureDispatch, EnsureModule
|
18
|
+
from win32com.client import GetObject
|
19
19
|
|
20
20
|
_APP_INPROC = 0
|
21
21
|
_APP_OUTPROC = 1
|
@@ -687,15 +687,12 @@ standard_arguments = {
|
|
687
687
|
}
|
688
688
|
|
689
689
|
|
690
|
-
def build_usage(handler_map):
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
for arg, desc in all_args.items():
|
697
|
-
usage_string += " %-10s: %s" % (arg, desc) + "\n"
|
698
|
-
return usage_string[:-1]
|
690
|
+
def build_usage(handler_map: Mapping[str, object]) -> str:
|
691
|
+
arg_names = "|".join(handler_map)
|
692
|
+
lines = [
|
693
|
+
" %-10s: %s" % (arg, handler.__doc__) for arg, handler in handler_map.items()
|
694
|
+
]
|
695
|
+
return f"%prog [options] [{arg_names}]\ncommands:\n" + "\n".join(lines)
|
699
696
|
|
700
697
|
|
701
698
|
def MergeStandardOptions(options, params):
|
@@ -29,7 +29,7 @@ if hasattr(sys, "isapidllhandle"):
|
|
29
29
|
import win32traceutil
|
30
30
|
|
31
31
|
# The site we are proxying.
|
32
|
-
proxy = "
|
32
|
+
proxy = "https://www.python.org"
|
33
33
|
|
34
34
|
# Urls we exclude (ie, allow IIS to handle itself) - all are lowered,
|
35
35
|
# and these entries exist by default on Vista...
|
@@ -17,7 +17,7 @@ if hasattr(sys, "isapidllhandle"):
|
|
17
17
|
import win32traceutil
|
18
18
|
|
19
19
|
# The site we are proxying.
|
20
|
-
proxy = "
|
20
|
+
proxy = "https://www.python.org"
|
21
21
|
|
22
22
|
# We synchronously read chunks of this size then asynchronously write them.
|
23
23
|
CHUNK_SIZE = 8192
|
@@ -46,7 +46,7 @@ if hasattr(sys, "isapidllhandle"):
|
|
46
46
|
import win32traceutil
|
47
47
|
|
48
48
|
# The site we are proxying.
|
49
|
-
proxy = "
|
49
|
+
proxy = "https://www.python.org"
|
50
50
|
# The name of the virtual directory we install in, and redirect from.
|
51
51
|
virtualdir = "/python"
|
52
52
|
|
@@ -84,6 +84,7 @@ class Extension(threaded_extension.ThreadPoolExtension):
|
|
84
84
|
# The ISAPI filter.
|
85
85
|
class Filter(SimpleFilter):
|
86
86
|
"Sample Python Redirector"
|
87
|
+
|
87
88
|
filter_flags = isapicon.SF_NOTIFY_PREPROC_HEADERS | isapicon.SF_NOTIFY_ORDER_DEFAULT
|
88
89
|
|
89
90
|
def HttpFilterProc(self, fc):
|
@@ -60,6 +60,7 @@ class WorkerThread(threading.Thread):
|
|
60
60
|
# fully asynch extension.
|
61
61
|
class ThreadPoolExtension(isapi.simple.SimpleExtension):
|
62
62
|
"Base class for an ISAPI extension based around a thread-pool"
|
63
|
+
|
63
64
|
max_workers = 20
|
64
65
|
worker_shutdown_wait = 15000 # 15 seconds for workers to quit...
|
65
66
|
|
@@ -129,7 +129,7 @@ class TimerManager:
|
|
129
129
|
print("The last operation completed successfully.")
|
130
130
|
except:
|
131
131
|
t, v, tb = sys.exc_info()
|
132
|
-
str = f"Failed: {t}: {
|
132
|
+
str = f"Failed: {t}: {v!r}"
|
133
133
|
print(str)
|
134
134
|
self.oldErr.write(str)
|
135
135
|
tb = None # Prevent cycle
|
@@ -45,9 +45,7 @@ class PrintDemoView(docview.ScrollView):
|
|
45
45
|
oldPen = None
|
46
46
|
x, y = self.size
|
47
47
|
delta = 2
|
48
|
-
colors =
|
49
|
-
colors.sort()
|
50
|
-
colors *= 2
|
48
|
+
colors = sorted(self.colors) * 2
|
51
49
|
for color in colors:
|
52
50
|
if oldPen is None:
|
53
51
|
oldPen = dc.SelectObject(self.pens[color])
|
@@ -37,10 +37,7 @@ class ThreadWriter:
|
|
37
37
|
|
38
38
|
def getwriter(self):
|
39
39
|
"Return the current thread's writer, default sys.stdout"
|
40
|
-
|
41
|
-
return self.writers[_thread.get_ident()]
|
42
|
-
except KeyError:
|
43
|
-
return self.origStdOut
|
40
|
+
self.writers.get(_thread.get_ident(), self.origStdOut)
|
44
41
|
|
45
42
|
def write(self, str):
|
46
43
|
"Write to the current thread's writer, default sys.stdout"
|
@@ -50,7 +47,7 @@ class ThreadWriter:
|
|
50
47
|
def Test():
|
51
48
|
num = 1
|
52
49
|
while num < 1000:
|
53
|
-
print("Hello there no
|
50
|
+
print("Hello there no", num)
|
54
51
|
win32api.Sleep(50)
|
55
52
|
num += 1
|
56
53
|
|
@@ -2,11 +2,10 @@
|
|
2
2
|
import sys
|
3
3
|
|
4
4
|
import __main__
|
5
|
-
import
|
6
|
-
import win32api
|
7
|
-
import win32ui
|
5
|
+
import pywin.dialogs.list
|
8
6
|
|
9
|
-
demos = [
|
7
|
+
demos = [
|
8
|
+
("Font", "import fontdemo;fontdemo.FontDemo()"),
|
10
9
|
("Open GL Demo", "import openGLDemo;openGLDemo.test()"),
|
11
10
|
("Threaded GUI", "import threadedgui;threadedgui.ThreadedDemo()"),
|
12
11
|
("Tree View Demo", "import hiertest;hiertest.demoboth()"),
|
@@ -19,58 +18,32 @@ demos = [ # ('Font', 'import fontdemo;fontdemo.FontDemo()'),
|
|
19
18
|
("OCX Control Demo", "from ocx import ocxtest;ocxtest.demo()"),
|
20
19
|
("OCX Serial Port Demo", "from ocx import ocxserialtest; ocxserialtest.test()"),
|
21
20
|
(
|
22
|
-
"
|
23
|
-
'from ocx import webbrowser; webbrowser.Demo("
|
21
|
+
"Internet Explorer Control Demo",
|
22
|
+
'from ocx import webbrowser; webbrowser.Demo("https://www.python.org")',
|
24
23
|
),
|
25
24
|
]
|
26
25
|
|
27
26
|
|
28
|
-
def
|
27
|
+
def _exec_demo(cmd):
|
29
28
|
try:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
# else put the demos direectory on the path (if not already)
|
34
|
-
try:
|
35
|
-
instPath = regutil.GetRegistryDefaultValue(
|
36
|
-
regutil.BuildDefaultPythonKey() + "\\InstallPath"
|
37
|
-
)
|
38
|
-
except win32api.error:
|
39
|
-
print(
|
40
|
-
"The InstallPath can not be located, and the Demos directory is not on the path"
|
41
|
-
)
|
42
|
-
instPath = "."
|
43
|
-
|
44
|
-
demosDir = win32ui.FullPath(instPath + "\\Demos")
|
45
|
-
for path in sys.path:
|
46
|
-
if win32ui.FullPath(path) == demosDir:
|
47
|
-
break
|
48
|
-
else:
|
49
|
-
sys.path.append(demosDir)
|
50
|
-
import fontdemo
|
29
|
+
exec(cmd)
|
30
|
+
except Exception as error:
|
31
|
+
print(f"Demo of {cmd} failed - {type(error)}:{error}")
|
51
32
|
|
52
|
-
import sys
|
53
33
|
|
34
|
+
def demo():
|
54
35
|
if "/go" in sys.argv:
|
55
36
|
for name, cmd in demos:
|
56
|
-
|
57
|
-
exec(cmd)
|
58
|
-
except:
|
59
|
-
print(f"Demo of {cmd} failed - {sys.exc_info()[0]}:{sys.exc_info()[1]}")
|
37
|
+
_exec_demo(cmd)
|
60
38
|
return
|
61
|
-
# Otherwise allow the user to select the demo to run
|
62
|
-
|
63
|
-
import pywin.dialogs.list
|
64
39
|
|
65
|
-
|
40
|
+
# Otherwise allow the user to select the demo to run
|
41
|
+
while True:
|
66
42
|
rc = pywin.dialogs.list.SelectFromLists("Select a Demo", demos, ["Demo Title"])
|
67
43
|
if rc is None:
|
68
44
|
break
|
69
45
|
title, cmd = demos[rc]
|
70
|
-
|
71
|
-
exec(cmd)
|
72
|
-
except:
|
73
|
-
print(f"Demo of {title} failed - {sys.exc_info()[0]}:{sys.exc_info()[1]}")
|
46
|
+
_exec_demo(cmd)
|
74
47
|
|
75
48
|
|
76
49
|
if __name__ == __main__.__name__:
|
@@ -41,7 +41,7 @@ class object_document(docview.Document):
|
|
41
41
|
|
42
42
|
class object_view(docview.EditView):
|
43
43
|
def OnInitialUpdate(self):
|
44
|
-
self.ReplaceSel("Object is
|
44
|
+
self.ReplaceSel(f"Object is {self.GetDocument().object!r}")
|
45
45
|
|
46
46
|
|
47
47
|
def demo():
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# simple flash/python application demonstrating bidirectional
|
3
3
|
# communicaion between flash and python. Click the sphere to see
|
4
4
|
# behavior. Uses Bounce.swf from FlashBounce.zip, available from
|
5
|
-
#
|
5
|
+
# https://cspages.ucalgary.ca/~saul/vb_examples/tutorial12/
|
6
6
|
|
7
7
|
# Update to the path of the .swf file (note it could be a true URL)
|
8
8
|
flash_url = "c:\\bounce.swf"
|
@@ -8,7 +8,6 @@
|
|
8
8
|
import pythoncom
|
9
9
|
import win32con
|
10
10
|
import win32ui
|
11
|
-
import win32uiole
|
12
11
|
from pywin.mfc import activex, dialog
|
13
12
|
from win32com.client import gencache
|
14
13
|
|
@@ -127,7 +126,7 @@ def test():
|
|
127
126
|
|
128
127
|
|
129
128
|
if __name__ == "__main__":
|
130
|
-
|
129
|
+
import demoutils
|
131
130
|
|
132
131
|
if demoutils.NeedGoodGUI():
|
133
132
|
test()
|
@@ -11,7 +11,6 @@ import os
|
|
11
11
|
import win32api
|
12
12
|
import win32con
|
13
13
|
import win32ui
|
14
|
-
import win32uiole
|
15
14
|
from pywin.mfc import activex, dialog, window
|
16
15
|
from win32com.client import gencache
|
17
16
|
|
@@ -238,7 +237,7 @@ def demo():
|
|
238
237
|
|
239
238
|
|
240
239
|
if __name__ == "__main__":
|
241
|
-
|
240
|
+
import demoutils
|
242
241
|
|
243
242
|
if demoutils.NeedGoodGUI():
|
244
243
|
testall()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This demo uses the
|
1
|
+
# This demo uses the Internet Explorer Web Browser control.
|
2
2
|
|
3
3
|
# It catches an "OnNavigate" event, and updates the frame title.
|
4
4
|
# (event stuff by Neil Hodgson)
|
@@ -16,7 +16,7 @@ WebBrowserModule = gencache.EnsureModule(
|
|
16
16
|
"{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}", 0, 1, 1
|
17
17
|
)
|
18
18
|
if WebBrowserModule is None:
|
19
|
-
raise ImportError("
|
19
|
+
raise ImportError("Internet Explorer does not appear to be installed.")
|
20
20
|
|
21
21
|
|
22
22
|
class MyWebBrowser(activex.Control, WebBrowserModule.WebBrowser):
|
@@ -32,7 +32,7 @@ class BrowserFrame(window.MDIChildWnd):
|
|
32
32
|
if url is None:
|
33
33
|
self.url = regutil.GetRegisteredHelpFile("Main Python Documentation")
|
34
34
|
if self.url is None:
|
35
|
-
self.url = "
|
35
|
+
self.url = "https://www.python.org"
|
36
36
|
else:
|
37
37
|
self.url = url
|
38
38
|
pass # Don't call base class doc/view version...
|