Miss Islington (bot)
e6499a07d4
Use assertTrue() instead of deprecated assert_(). (GH-5526) (GH-5527)
...
(cherry picked from commit 95c3262762
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-02-04 18:38:56 +02:00
Ned Deily
763f094b1f
bpo-28440: Don't add /Library/Python/3.x/site-packages to sys.path ( #5445 )
...
No longer add /Library/Python/3.x/site-packages, the Apple-supplied
system Python site-packages directory, to sys.path for macOS framework
builds in case Apple ships a version of Python 3. A similar change
was made earlier to Python 2.7 where it was found that the coupling
between the system Python and a user-installed framework Python often
caused confusion or pip install failures.
2018-01-30 05:14:09 -05:00
Mike
53f7a7c281
bpo-32297: Few misspellings found in Python source code comments. ( #4803 )
...
* Fix multiple typos in code comments
* Add spacing in comments (test_logging.py, test_math.py)
* Fix spaces at the beginning of comments in test_logging.py
2017-12-14 13:04:53 +02:00
INADA Naoki
ba9ddb7eea
bpo-29585: fix test fail on macOS Framework build (GH-2928)
2017-07-28 21:28:19 +09:00
Ned Deily
c22bd58d93
bpo-28095: Re-enable temporarily disabled part of test_startup_imports on macOS ( #2927 )
...
The changes for bpo-29585 eliminate the extra imports on macOS that caused
the original test failure.
This reverts commit 8a2150aae6
.
2017-07-28 03:02:10 -04:00
INADA Naoki
a8f8d5b4bd
bpo-29585: optimize site.py startup time (GH-136)
...
Avoid importing `sysconfig` from `site` by copying minimum code.
Python startup is 5% faster on Linux and 30% faster on macOS
2017-06-29 00:31:53 +09:00
Steve Dower
9b33bf50da
Improves test_underpth_nosite_file to reveal why it fails. ( #1763 )
...
* 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.
2017-05-23 16:25:25 -07:00
Eric Snow
6b4be195cd
bpo-22257: Small changes for PEP 432. ( #1728 )
...
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.
2017-05-22 21:36:03 -07:00
Zachary Ware
d48214f22c
bpo-29763: Clean up _pth tests (GH-954)
2017-05-14 15:49:46 -05:00
Victor Stinner
b85c136903
bpo-30108: Restore sys.path in test_site ( #1197 )
...
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.
2017-04-20 13:39:39 +02:00
Zachary Ware
cd815edf01
Revert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942)
...
This reverts commit b94d7fd4ef
.
2017-04-01 01:29:31 -05:00
Zachary Ware
b94d7fd4ef
bpo-29763: Use unittest cleanup in test_site (GH-841)
2017-04-01 00:18:23 -05:00
Zachary Ware
93710c152e
bpo-29763: Use support.unlink instead of os.unlink (GH-624)
...
support.unlink waits for the files to be removed before returning
2017-03-11 22:10:07 -06:00
Steve Dower
5f9193a6ed
Issue #29326 : Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
2017-02-04 15:19:29 -08:00
Steve Dower
1da055ee0d
Makes test_underpth* tests more robust by copying the executable.
2016-10-29 08:50:31 -07:00
Steve Dower
c6dd415252
Issue #28522 : Fixes mishandled buffer reallocation in getpathp.c
2016-10-27 14:28:07 -07:00
Steve Dower
6dd8eca4a9
Issue #28192 : Adds tests for hook in isolated mode
2016-09-17 14:35:32 -07:00
Steve Dower
313523ce2d
Issue #28192 : Don't import readline in isolated mode
2016-09-17 12:22:41 -07:00
Ned Deily
8a2150aae6
Issue #28095 : Temporarily disable part of test_startup_imports on OS X.
2016-09-12 00:26:20 -04:00
Eric Snow
46f97b85a8
Issue #15767 : Use ModuleNotFoundError.
2016-09-07 16:56:15 -07:00
Brett Cannon
5f0507d8ab
Issue #26587 : Allow .pth files to specify file paths as well as
...
directories.
Thanks to Wolfgang Langner for the bug report and initial version of
the patch.
2016-04-08 15:04:28 -07:00
Victor Stinner
3719779765
Merge 3.5 (test_site)
2016-03-14 17:47:30 +01:00
Victor Stinner
21d0e1b5fc
Skip test_site if USER_SITE cannot be created
...
Issue #17758 : Skip test_site if site.USER_SITE directory doesn't exist and
cannot be created.
2016-03-14 17:47:03 +01:00
Serhiy Storchaka
885bdc4946
Issue #25985 : sys.version_info is now used instead of sys.version
...
to format short Python version.
2016-02-11 13:10:36 +02:00
Eric Snow
00607e91bd
Issue #23911 : Fix mixed bytes/strings.
2015-05-04 11:48:39 -06:00
Eric Snow
32439d6eb6
Issue #23911 : Move path-based bootstrap code to a separate frozen module.
2015-05-02 19:15:18 -06:00
Benjamin Peterson
ad9f99e41f
merge 3.4
2015-02-01 20:18:29 -05:00
Benjamin Peterson
337578b242
fix tests on systems that can't validate python.org
2015-02-01 20:16:59 -05:00
Serhiy Storchaka
d8a1447c99
Issue #22215 : Now ValueError is raised instead of TypeError when str or bytes
...
argument contains not permitted null character or byte.
2014-09-06 20:07:17 +03:00
Antoine Pitrou
9e82b17e9d
Issue #21711 : support for "site-python" directories has now been removed from the site module (it was deprecated in 3.4).
2014-06-12 19:41:30 -04:00
doko@ubuntu.com
9574355ff3
- Issue #21223 : Pass test_site/test_startup_imports when some of the extensions
...
are built as builtins.
2014-04-15 20:37:54 +02:00
Ned Deily
944d597faa
Issue #20939 : remove stray character from comment
2014-03-26 23:43:26 -07:00
Ned Deily
5a507f0f05
Issue #20939 : Use www.example.com instead of www.python.org to avoid test
...
failures when ssl is not present.
2014-03-26 23:31:39 -07:00
Zachary Ware
63321b4978
Issue #19828 : Merge with 3.3
2013-12-11 17:01:21 -06:00
Zachary Ware
36193e73b8
Issue #19828 : Fixed test_site when the whole suite is run with -S.
...
Also, cleaned up an unused import.
2013-12-11 16:59:44 -06:00
Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:20:35 -06:00
Georg Brandl
78abc9dcc2
Skip overzealous test for existence of the online license.html for pre-release versions.
2013-10-27 09:41:57 +01:00
Georg Brandl
186729e812
merge with 3.3
2013-10-27 09:54:53 +01:00
Antoine Pitrou
dfea31254b
Issue #19360 : fix test_site when Python is installed into $HOME/.local
2013-10-23 22:03:45 +02:00
Antoine Pitrou
a1782e1be8
Issue #19360 : fix test_site when Python is installed into $HOME/.local
2013-10-23 22:03:22 +02:00
Ned Deily
b795aa8547
Issue #19275 : Fix test_site failure on OS X due to typo.
2013-10-17 15:21:40 -07:00
Christian Heimes
86823a52fc
Issue #19275 : Fix test_site on AMD64 Snow Leopard
2013-10-17 13:40:00 +02:00
Christian Heimes
f1dc3ee16d
Issue #19218 : Rename collections.abc to _collections_abc in order to speed up interpreter start
2013-10-13 02:04:20 +02:00
Christian Heimes
f403f50378
Issue #19205 : _osx_support uses the re module all over the place. Omit the test for nw.
2013-10-12 15:08:42 +02:00
Christian Heimes
179a3dbc9e
Issue #19205 : add debugging output for failing test on Snow Leopard
2013-10-12 12:32:21 +02:00
Christian Heimes
2582762b1b
Issue #19209 : Remove import of copyreg from the os module to speed up
...
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.
2013-10-12 01:27:08 +02:00
Christian Heimes
1a5fb4e3c1
Also test that the locale module isn't loaded during normal startup
2013-10-12 01:00:51 +02:00
Christian Heimes
8c9cd5a3d4
Issue #19205 : Don't import the 're' module in site and sysconfig module to
...
to speed up interpreter start.
2013-10-12 00:24:55 +02:00
R David Murray
f11caa0bba
Merge #18206 : Fix test for existence of license URL.
...
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.
2013-09-14 13:31:14 -04:00