summaryrefslogtreecommitdiffstats
path: root/Lib/test/pythoninfo.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38338, test.pythoninfo: add more ssl infos (GH-16539)Miss Islington (bot)2019-10-021-0/+31
| | | | | | | | test.pythoninfo now logs environment variables used by OpenSSL and Python ssl modules, and logs attributes of 3 SSL contexts (SSLContext, default HTTPS context, stdlib context). (cherry picked from commit b3e7045f8314e7b62cd95861d207fe2f97e47198) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-35952: Sync test.pythoninfo from master (GH-13009)Victor Stinner2019-04-291-15/+38
|
* bpo-35772: Fix test_tarfile on ppc64 (GH-11606)Miss Islington (bot)2019-01-211-0/+2
| | | | | | | | | | | | | | | | | | Fix sparse file tests of test_tarfile on ppc64le with the tmpfs filesystem. Fix the function testing if the filesystem supports sparse files: create a file which contains data and "holes", instead of creating a file which contains no data. tmpfs effective block size is a page size (tmpfs lives in the page cache). RHEL uses 64 KiB pages on aarch64, ppc64 and ppc64le, only s390x and x86_64 use 4 KiB pages, whereas the test punch holes of 4 KiB. test.pythoninfo: Add resource.getpagesize(). (cherry picked from commit b2385458ceddaf3d0d91456923716259d3915023) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)Victor Stinner2018-12-201-0/+3
| | | | | | | | When compiling 3rd party C extensions, the linker flags used by the compiler for the interpreter and the stdlib modules, will get leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS and PY_LDFLAGS_NODIST are introduced to keep those flags separated. (cherry picked from commit cf10a750f4b50b6775719cfb17bee00bc3a9c60b)
* bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)Miss Islington (bot)2018-12-051-0/+1
| | | | | | | | | On Travis CI, FTP tests of test_urllib2net randomly fail with "425 Security: Bad IP connecting". test.pythoninfo now also logs TRAVIS environment variable. (cherry picked from commit c11b3b19a5b022c6c229043d37f9a9fd06f22500) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* pythoninfo: log more environment variable (GH-10719) (GH-10769)Victor Stinner2018-11-281-4/+45
| | | | | Log TZ to debug a timezone issue... and a few more :-) (cherry picked from commit 282c03d45d2d766c55904a4eb766923a2c459124)
* [3.7] bpo-35233: Rewrite test_embed.InitConfigTests (GH-10524) (GH-10529)Victor Stinner2018-11-141-1/+30
| | | | | | | | | | | | | | | | | | | | | * Add C functions: * _Py_GetGlobalVariablesAsDict() * _PyCoreConfig_AsDict() * _PyMainInterpreterConfig_AsDict() * Add new _testcapi methods: * get_global_config() * get_core_config() * get_main_config() * test.pythoninfo: get global, core and main configuration * _testembed now serializes global, core and main configurations using JSON to reuse _Py_GetGlobalVariablesAsDict(), _PyCoreConfig_AsDict() and _PyMainInterpreterConfig_AsDict(), rather than duplicating code. * test_embed.InitConfigTests now test much more configuration variables
* set terse to True when calling platform.platform in test.pythoninfo (GH-7797)Xiang Zhang2018-06-191-1/+1
|
* bpo-33692: Update pythoninfo from master (GH-7298)Victor Stinner2018-06-011-0/+37
| | | | * bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293) * bpo-33717: pythoninfo: add CC --version (GH-7290)
* pythoninfo: add time.time and datetime.datetime.now (#5214)Victor Stinner2018-01-171-1/+13
|
* pythoninfo: Add builtins, test.support, ... (#4840)Victor Stinner2017-12-131-1/+50
| | | | | | Collect more info from builtins, resource, test.test_socket and test.support modules. Co-Authored-By: Christian Heimes <christian@python.org>
* bpo-32030: Rework memory allocators (#4625)Victor Stinner2017-11-291-18/+32
| | | | | | | | | | | | | | | | | | | | * Fix _PyMem_SetupAllocators("debug"): always restore allocators to the defaults, rather than only caling _PyMem_SetupDebugHooks(). * Add _PyMem_SetDefaultAllocator() helper to set the "default" allocator. * Add _PyMem_GetAllocatorsName(): get the name of the allocators * main() now uses debug hooks on memory allocators if Py_DEBUG is defined, rather than calling directly malloc() * Document default memory allocators in C API documentation * _Py_InitializeCore() now fails with a fatal user error if PYTHONMALLOC value is an unknown memory allocator, instead of failing with a fatal internal error. * Add new tests on the PYTHONMALLOC environment variable * Add support.with_pymalloc() * Add the _testcapi.WITH_PYMALLOC constant and expose it as support.with_pymalloc(). * sysconfig.get_config_var('WITH_PYMALLOC') doesn't work on Windows, so replace it with support.with_pymalloc(). * pythoninfo: add _testcapi collector for pymem
* Fix miscellaneous typos (#4275)luzpaz2017-11-051-2/+2
|
* pythoninfo: add Py_DEBUG (#4198)Victor Stinner2017-10-311-0/+8
|
* pythoninfo: ignore OSError(ENOSYS) on getrandom() (#3655)Victor Stinner2017-09-191-5/+12
|
* bpo-30871: pythoninfo: more sys, os, time data (#3130)Victor Stinner2017-08-181-40/+82
| | | | | | | | * bpo-30871: pythoninfo: more sys, os, time data PythonInfo now converts types other than intger to string by default. * fix typo
* bpo-30871: pythoninfo: add expat and _decimal (#3121)Victor Stinner2017-08-171-0/+22
| | | | | | | | * bpo-30871: pythoninfo: add expat and _decimal * Remove _decimal.__version__ The string is hardcoded, not really interesting.
* bpo-30871: Add test.pythoninfo (#3075)Victor Stinner2017-08-171-0/+407
* Add Lib/test/pythoninfo.py: script collecting various informations about Python to help debugging test failures. * regrtest: remove sys.hash_info and sys.flags from header. * Travis CI, Appveyor: run pythoninfo before tests