summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | Issue #15767: back out 8a0ed9f63c6e, finishing the removal ofBrett Cannon2013-07-041-1/+1
| | | | | | | | ModuleNotFoundError.
* | Update various test modules to use unittest.main() for test discoveryBrett Cannon2013-06-131-3/+1
| | | | | | | | instead of manually listing tests for test.support.run_unittest().
* | Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem.
* | Remove sys.platform == 'riscos' checks from some Python and test files. #16501Christian Heimes2012-11-181-5/+1
| |
* | Closes #16135: Removal of OS/2 supportJesus Cea2012-10-051-1/+1
|/
* Fix test_site from modifying sysconfig._CONFIG_VARS.Brett Cannon2012-04-041-1/+4
|
* Issue #10881: Fix test_site failure with OS X framework builds.Ned Deily2012-02-051-10/+13
|
* Issue #13304: Skip test case if user site-packages disabled (-s orNed Deily2011-10-311-1/+3
| | | | PYTHONNOUSERSITE). (Patch by Carl Meyer)
* Fix test_site for systems without unsetenv. Reported by Zsolt Cserna.Éric Araujo2011-01-031-2/+6
|
* Skip test that does not raise an error on Windows.R. David Murray2010-12-271-0/+2
| | | | | I'm assuming that the putative path from the malformed pth file is simply not found and therefore ignored.
* Escape file path before searching for it in output via regexR. David Murray2010-12-271-3/+7
|
* #5258/#10642: print fn, line, traceback and continue when .pth file is brokenR. David Murray2010-12-261-0/+48
| | | | | | | | | | If a .pth file contained an error, it could cause a traceback in site.py, terminating its processing. In 2.7 and 3.2, the interpreter will then not start. Previously, a message would print saying to use -v to get the traceback. In either case, the traceback generated for a failed .pth file did not include the .pth filename, making it difficult to debug the problem. Now site.py reports not only the .pth filename but also the line number causing the error, and just skips the remainder of the file.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-8/+8
|
* Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()Antoine Pitrou2010-09-011-8/+0
| | | | | are now removed, since their effect was inexistent in 3.x (the default encoding is hardcoded to utf-8 and cannot be changed).
* Correct a couple of assert* methods. Patch by Dave Malcolm.Ezio Melotti2010-08-171-2/+2
|
* Ensure that test_site actually passes with a framework buildRonald Oussoren2010-08-011-5/+2
|
* Merged revisions 81152 via svnmerge fromBrett Cannon2010-05-141-1/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81152 | brett.cannon | 2010-05-13 16:59:41 -0700 (Thu, 13 May 2010) | 3 lines test_site was failing under darwin for non-framework builds because a test was assuming framework-specific site-packages directories were being used. ........
* Issue #8340, test_abs_path() of test_site: encode paths to ASCII withVictor Stinner2010-04-181-7/+12
| | | | | backslashreplace to avoid locale issues, don't write stderr to a pipe to ease debug, separate directories by newlines instead of a space.
* PEP 3147Barry Warsaw2010-04-171-13/+32
|
* Merged revisions 77704,77752 via svnmerge fromTarek Ziadé2010-01-291-0/+8
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77704 | tarek.ziade | 2010-01-23 10:23:15 +0100 (Sat, 23 Jan 2010) | 1 line taking sysconfig out of distutils ........ r77752 | tarek.ziade | 2010-01-26 00:19:56 +0100 (Tue, 26 Jan 2010) | 1 line switched the call order so this call works without suffering from issue #7774 ........
* use assert[Not]In where appropriateEzio Melotti2010-01-231-5/+5
|