summaryrefslogtreecommitdiff
path: root/Lib/test/pythoninfo.py
AgeCommit message (Collapse)AuthorLines
2018-12-23bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)Victor Stinner-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)
2018-12-04bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)Miss Islington (bot)-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>
2018-11-28pythoninfo: log more environment variable (GH-10719) (GH-10769)Victor Stinner-4/+45
Log TZ to debug a timezone issue... and a few more :-) (cherry picked from commit 282c03d45d2d766c55904a4eb766923a2c459124)
2018-11-14[3.7] bpo-35233: Rewrite test_embed.InitConfigTests (GH-10524) (GH-10529)Victor Stinner-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
2018-06-20set terse to True when calling platform.platform in test.pythoninfo (GH-7797)Xiang Zhang-1/+1
2018-06-01bpo-33692: Update pythoninfo from master (GH-7298)Victor Stinner-0/+37
* bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293) * bpo-33717: pythoninfo: add CC --version (GH-7290)
2018-01-17pythoninfo: add time.time and datetime.datetime.now (#5214)Victor Stinner-1/+13
2017-12-13pythoninfo: Add builtins, test.support, ... (#4840)Victor Stinner-1/+50
Collect more info from builtins, resource, test.test_socket and test.support modules. Co-Authored-By: Christian Heimes <christian@python.org>
2017-11-29bpo-32030: Rework memory allocators (#4625)Victor Stinner-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
2017-11-05Fix miscellaneous typos (#4275)luzpaz-2/+2
2017-10-31pythoninfo: add Py_DEBUG (#4198)Victor Stinner-0/+8
2017-09-19pythoninfo: ignore OSError(ENOSYS) on getrandom() (#3655)Victor Stinner-5/+12
2017-08-18bpo-30871: pythoninfo: more sys, os, time data (#3130)Victor Stinner-40/+82
* bpo-30871: pythoninfo: more sys, os, time data PythonInfo now converts types other than intger to string by default. * fix typo
2017-08-17bpo-30871: pythoninfo: add expat and _decimal (#3121)Victor Stinner-0/+22
* bpo-30871: pythoninfo: add expat and _decimal * Remove _decimal.__version__ The string is hardcoded, not really interesting.
2017-08-17bpo-30871: Add test.pythoninfo (#3075)Victor Stinner-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