summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-29585: fix test fail on macOS Framework build (GH-2928)INADA Naoki2017-07-281-1/+5
|
* bpo-28095: Re-enable temporarily disabled part of test_startup_imports on ↵Ned Deily2017-07-281-3/+1
| | | | | | | | macOS (#2927) The changes for bpo-29585 eliminate the extra imports on macOS that caused the original test failure. This reverts commit 8a2150aae6db4d664c96a038ef6abacd4bcbcdc9.
* bpo-29585: optimize site.py startup time (GH-136)INADA Naoki2017-06-281-0/+7
| | | | Avoid importing `sysconfig` from `site` by copying minimum code. Python startup is 5% faster on Linux and 30% faster on macOS
* Improves test_underpth_nosite_file to reveal why it fails. (#1763)Steve Dower2017-05-231-6/+10
| | | | | | | | | | | | | | * Improves test_underpth_nosite_file to reveal why it fails. * Enable building with Windows 10 SDK. * Fix WinSDK detection * Fix initialization on Windows when a ._pth file exists. * Fix tabs * Adds comment about Py_GetPath call.
* bpo-22257: Small changes for PEP 432. (#1728)Eric Snow2017-05-231-3/+6
| | | PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.
* bpo-29763: Clean up _pth tests (GH-954)Zachary Ware2017-05-141-46/+31
|
* bpo-30108: Restore sys.path in test_site (#1197)Victor Stinner2017-04-201-8/+21
| | | | | | Add setUpModule() and tearDownModule() functions to test_site to save/restore sys.path at the module level to prevent warning if the user site directory is created, since site.addsitedir() modifies sys.path.
* Revert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942)Zachary Ware2017-04-011-34/+45
| | | This reverts commit b94d7fd4efa877d649cea9c8125c8869ffe0c32d.
* bpo-29763: Use unittest cleanup in test_site (GH-841)Zachary Ware2017-04-011-45/+34
|
* bpo-29763: Use support.unlink instead of os.unlink (GH-624)Zachary Ware2017-03-121-4/+4
| | | support.unlink waits for the files to be removed before returning
* Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)Steve Dower2017-02-041-13/+27
|
* Makes test_underpth* tests more robust by copying the executable.Steve Dower2016-10-291-25/+48
|
* Issue #28522: Fixes mishandled buffer reallocation in getpathp.cSteve Dower2016-10-271-0/+52
|
* Issue #28192: Adds tests for hook in isolated modeSteve Dower2016-09-171-0/+18
|
* Issue #28192: Don't import readline in isolated modeSteve Dower2016-09-171-6/+2
|
* Issue #28095: Temporarily disable part of test_startup_imports on OS X.Ned Deily2016-09-121-1/+3
|
* Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-071-1/+1
|
* Issue #26587: Allow .pth files to specify file paths as well asBrett Cannon2016-04-081-1/+1
| | | | | | | directories. Thanks to Wolfgang Langner for the bug report and initial version of the patch.
* Merge 3.5 (test_site)Victor Stinner2016-03-141-2/+7
|\
| * Skip test_site if USER_SITE cannot be createdVictor Stinner2016-03-141-2/+7
| | | | | | | | | | Issue #17758: Skip test_site if site.USER_SITE directory doesn't exist and cannot be created.
* | Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-2/+3
|/ | | | to format short Python version.
* Issue #23911: Fix mixed bytes/strings.Eric Snow2015-05-041-2/+4
|
* Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-2/+4
|
* merge 3.4Benjamin Peterson2015-02-021-0/+1
|\
| * fix tests on systems that can't validate python.orgBenjamin Peterson2015-02-021-0/+1
| |
* | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-1/+1
| | | | | | | | argument contains not permitted null character or byte.
* | Issue #21711: support for "site-python" directories has now been removed ↵Antoine Pitrou2014-06-121-5/+3
|/ | | | from the site module (it was deprecated in 3.4).
* - Issue #21223: Pass test_site/test_startup_imports when some of the extensionsdoko@ubuntu.com2014-04-151-1/+2
| | | | are built as builtins.
* Issue #20939: remove stray character from commentNed Deily2014-03-271-1/+1
|
* Issue #20939: Use www.example.com instead of www.python.org to avoid testNed Deily2014-03-271-1/+3
| | | | failures when ssl is not present.
* Issue #19828: Merge with 3.3Zachary Ware2013-12-111-9/+8
|\
| * Issue #19828: Fixed test_site when the whole suite is run with -S.Zachary Ware2013-12-111-9/+8
| | | | | | | | Also, cleaned up an unused import.
* | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-0/+1
|\ \ | |/
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-0/+1
| |
* | merge with 3.3Georg Brandl2013-10-271-0/+2
|\ \ | |/
| * Skip overzealous test for existence of the online license.html for ↵v3.3.3rc1Georg Brandl2013-10-271-0/+2
| | | | | | | | pre-release versions.
* | Issue #19360: fix test_site when Python is installed into $HOME/.localAntoine Pitrou2013-10-231-2/+8
|\ \ | |/
| * Issue #19360: fix test_site when Python is installed into $HOME/.localAntoine Pitrou2013-10-231-2/+8
| |
* | Issue #19275: Fix test_site failure on OS X due to typo.Ned Deily2013-10-171-1/+1
| |
* | Issue #19275: Fix test_site on AMD64 Snow LeopardChristian Heimes2013-10-171-2/+3
| |
* | Issue #19218: Rename collections.abc to _collections_abc in order to speed ↵Christian Heimes2013-10-131-0/+5
| | | | | | | | up interpreter start
* | Issue #19205: _osx_support uses the re module all over the place. Omit the ↵Christian Heimes2013-10-121-1/+3
| | | | | | | | test for nw.
* | Issue #19205: add debugging output for failing test on Snow LeopardChristian Heimes2013-10-121-7/+12
| |
* | Issue #19209: Remove import of copyreg from the os module to speed upChristian Heimes2013-10-111-1/+4
| | | | | | | | | | | | interpreter startup. stat_result and statvfs_result are now hard-coded to reside in the os module. The patch is based on Victor Stinner's patch.
* | Also test that the locale module isn't loaded during normal startupChristian Heimes2013-10-111-0/+2
| |
* | Issue #19205: Don't import the 're' module in site and sysconfig module toChristian Heimes2013-10-111-0/+15
| | | | | | | | to speed up interpreter start.
* | Merge #18206: Fix test for existence of license URL.R David Murray2013-09-141-20/+14
|\ \ | |/ | | | | | | | | This test will fail because a previous attempt to fix a merge error in site.py was incorrect, but the test wasn't running so it wasn't caught. The next commit will fix the site.py bug.
| * #18206: Fix test for existence of license URL.R David Murray2013-09-141-23/+15
| | | | | | | | | | | | It now always checks, instead of only when the LICENSE file doesn't exist. It is also protected by the 'network' resource, and uses a HEAD request since we are only doing an existence check.
* | merge from 3.3Senthil Kumaran2013-09-071-1/+25
|\ \ | |/ | | | | | | Fix License URL display and add test to check for license url presence. Fixes issue #18206 Patch contributed by Berker Peksag and py.user
| * Fix License URL display and add test to check for license url presence.Senthil Kumaran2013-09-071-2/+26
| | | | | | | | Fixes issue #18206 Patch contributed by Berker Peksag and py.user