Steve Dower
df2d4a6f3d
bpo-37834: Normalise handling of reparse points on Windows (GH-15231)
...
bpo-37834: Normalise handling of reparse points on Windows
* ntpath.realpath() and nt.stat() will traverse all supported reparse points (previously was mixed)
* nt.lstat() will let the OS traverse reparse points that are not name surrogates (previously would not traverse any reparse point)
* nt.[l]stat() will only set S_IFLNK for symlinks (previous behaviour)
* nt.readlink() will read destinations for symlinks and junction points only
bpo-1311: os.path.exists('nul') now returns True on Windows
* nt.stat('nul').st_mode is now S_IFCHR (previously was an error)
2019-08-21 15:27:33 -07:00
Min ho Kim
c4cacc8c5e
Fix typos in comments, docs and test names ( #15018 )
...
* Fix typos in comments, docs and test names
* Update test_pyparse.py
account for change in string length
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: Dealloccte -> Deallocate
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Update posixmodule checksum.
* Reverse idlelib changes.
2019-07-30 18:16:13 -04:00
Steve Dower
b1eb20e68e
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
2019-07-26 09:06:04 -07:00
Steve Dower
9048c49322
bpo-37369: Fix initialization of sys members when launched via an app container (GH-14428)
...
sys._base_executable is now always defined on all platforms, and can be overridden through configuration.
Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
2019-06-29 10:34:11 -07:00
Cooper Lees
4acdbf11b1
bpo-34556: Add --upgrade-deps to venv module ( #13100 )
...
Add --upgrade-deps to venv module
- This allows for pip + setuptools to be automatically upgraded to the latest version on PyPI
- Update documentation to represent this change
bpo-34556: Add --upgrade to venv module
2019-06-17 19:18:13 +01:00
Victor Stinner
bc6469f79c
bpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816)
...
test_venv.test_mutiprocessing() now explicitly calls pool.terminate()
to wait until the pool completes.
2019-06-04 19:03:13 +02:00
xdegaye
5437ccca14
bpo-36342: Fix test_multiprocessing in test_venv (GH-12513)
...
when platform lacks a functioning sem_open implementation
https://bugs.python.org/issue36342
2019-05-30 14:42:29 -07:00
Steve Dower
8bba81fd55
bpo-35978: Correctly skips venv tests in venvs (GH-12220)
...
Also fixes venvs from the build directory on Windows.
2019-03-21 10:04:21 -07:00
Cheryl Sabella
839b925f63
bpo-35661: Fix failing test on buildbot (GH-12297)
2019-03-12 20:15:47 -04:00
Cheryl Sabella
d5a70c6b03
bpo-35661: Store the venv prompt in pyvenv.cfg (GH-11440)
2019-03-08 17:01:27 -05:00
Steve Dower
a8474d025c
bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)
...
After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use.
Make the same changes for macOS to avoid extra platform checks.
2019-02-03 23:19:38 -08:00
Steve Dower
a1f9a3332b
bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)
2019-01-30 13:49:14 -08:00
Steve Dower
4e02f8f8b4
bpo-35797: Fix default executable used by the multiprocessing module (GH-11676)
2019-01-25 14:59:12 -08:00
Steve Dower
1c3de541e6
bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029)
2018-12-10 08:11:21 -08:00
Victor Stinner
cb0b78a070
Revert "bpo-34977: Add Windows App Store package (GH-10245)" (GH-11019)
...
This reverts commit 468a15aaf9
.
2018-12-07 12:57:43 +01:00
Steve Dower
468a15aaf9
bpo-34977: Add Windows App Store package (GH-10245)
2018-12-06 21:09:20 -08:00
Pablo Galindo
b93925047a
Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400)
...
The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it.
2018-11-07 22:21:17 +00:00
Steve Dower
f14c28f397
bpo-34011: Fixes missing venv files and other tests (GH-9458)
2018-09-20 13:38:34 -07:00
Steve Dower
6240917b77
bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)
2018-02-19 17:25:24 -08:00
Victor Stinner
895862aa01
bpo-32088: Display Deprecation in debug mode ( #4474 )
...
When Python is build is debug mode (Py_DEBUG), DeprecationWarning,
PendingDeprecationWarning and ImportWarning warnings are now
displayed by default.
test_venv: run "-m pip" and "-m ensurepip._uninstall" with -W
ignore::DeprecationWarning since pip code is not part of Python.
2017-11-20 18:47:03 +01:00
Serhiy Storchaka
5e0df74b3b
bpo-31999: Fix test_venv in case the zlib module is not available. ( #4359 )
2017-11-10 12:09:39 +02:00
Antoine Pitrou
a6a4dc816d
bpo-31370: Remove support for threads-less builds ( #3385 )
...
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
2017-09-07 18:56:24 +02:00
Vinay Sajip
993f535ae9
Fixes #24875 : Merged fix from 3.5.
2017-02-02 19:17:02 +00:00
Vinay Sajip
db6322cb8a
Fixes #24875 : pip can now be installed in a venv with --system-site-packages.
2017-02-02 19:05:19 +00:00
Donald Stufft
c96b8fcf25
Allow ensurepip even when ssl is unavailable
2016-11-02 20:32:37 -04:00
Berker Peksag
5a5ae745ff
Issue #26610 : Skip test_with_pip if _ctypes is not available in OpenIndiana
2016-09-18 14:52:25 +03:00
Vinay Sajip
fd0f84bd8f
Closes #22829 : Added --prompt option to venv.
2016-08-06 10:43:44 +01:00
Serhiy Storchaka
e437a10d15
Issue #23277 : Remove unused imports in tests.
2016-04-24 21:41:02 +03:00
Victor Stinner
bdc337b7a8
test_venv: enhance test_devnull()
2016-03-25 12:30:40 +01:00
Victor Stinner
b347788b82
Skip test_venv.test_with_pip() if ctypes miss
...
Issue #26610 .
2016-03-25 12:27:02 +01:00
Victor Stinner
0ab7d0978b
Merge 3.5 (test_venv)
2016-03-14 18:22:12 +01:00
Victor Stinner
87d6e1364c
Fix test_venv on FreeBSD buildbot
...
Ignore pip warning in test_venv.test_with_venv().
2016-03-14 18:21:58 +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
Berker Peksag
1b25eff76e
Issue #25366 : Skip test_with_pip when threading module is not available
...
Some dependencies of pip import threading module unconditionally so
we need to skip the test to make buildbots happy.
2016-01-19 02:01:53 +02:00
Zachary Ware
38c707e7e0
Issue #21741 : Update 147 test modules to use test discovery.
...
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux. The only differences I found were actually tests
that were previously *not* run.
2015-04-13 15:00:43 -05:00
Victor Stinner
866c4e2188
test_venv: use support.rmtree() instead of shutil.rmtree() to fix sporadic
...
failures on Windows
2014-10-10 14:23:00 +02:00
Vinay Sajip
b9b965f6dd
Issue #21643 : Updated test and fixed logic bug in lib64 symlink creation.
2014-06-03 16:47:51 +01:00
Vinay Sajip
1e53f8d9bf
Issue #21197 : Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
2014-04-15 11:18:10 +01:00
Nick Coghlan
11c5afd138
Issue #20053 : Mark as an expected failure for 3.4
2014-02-07 23:46:38 +10:00
Nick Coghlan
d49fa5eb11
Issue #20053 : Actually test relevant assumption
2014-02-07 22:28:18 +10:00
Nick Coghlan
456ab5d909
Issue #20053 : new test to check an assumption
2014-02-05 23:54:55 +10:00
Nick Coghlan
6edd82a1d2
Close #20053 : ignore default pip config settings
...
ensurepip now sets PIP_CONFIG_FILE to os.devnull before
import pip from the wheel file. This also ensures venv
ignores the default settings when bootstrapping pip.
2014-02-04 23:02:36 +10:00
Nick Coghlan
ae2ee96ad7
Issue #19744 : improve ensurepip error when ssl is missing
2013-12-23 23:07:07 +10:00
Nick Coghlan
6256fcbc97
Close #19734 : ignore pip env vars in ensurepip
2013-12-23 16:16:07 +10:00
Nick Coghlan
8ddd59e870
Issue #19728 : don't be sensitive to line endings
2013-11-30 18:35:32 +10:00
Nick Coghlan
fdf3a620a2
Issue #19728 : add private ensurepip._uninstall CLI
...
MvL would like to be able to preserve CPython's existing clean
uninstall behaviour on Windows before enabling the pip
installation option by default.
This private CLI means running "python -m ensurepip._uninstall"
will remove pip and setuptools before proceeding with the rest
of the uninstallation process.
If the version of pip differs from the one bootstrapped by
CPython, then the uninstallation helper will leave it alone
(just like any other pip installed packages)
2013-11-30 17:15:09 +10:00
Nick Coghlan
1b1b1789d0
Fix and test pip version consistency
2013-11-30 15:56:58 +10:00
Nick Coghlan
1d1d834328
Issue #19734 : Also run pip version check in isolated mode
2013-11-24 16:49:20 +10:00
Nick Coghlan
091167c1ca
Issue #19734 : Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
2013-11-24 14:58:31 +10:00
Nick Coghlan
878d258a22
Issue #19744 (temp workaround): without ssl, skip pip test
2013-11-24 12:45:25 +10:00