summaryrefslogtreecommitdiff
path: root/Lib/test/test_venv.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45337: Use the realpath of the new executable when creating a venv on ↵Miss Islington (bot)2021-10-071-2/+8
| | | | | | | Windows (GH-28663) (cherry picked from commit 6811fdaec825bd6ab64e358a4b480108f5634d2d) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.9] bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵Serhiy Storchaka2020-06-251-2/+2
| | | | | | characters. (GH-21035). (GH-21156) (cherry picked from commit 700cfa8c90a90016638bac13c4efd03786b2b2a0)
* bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() ↵Victor Stinner2020-06-181-3/+5
| | | | | | | | | | (GH-20944) (GH-20962) On Linux, skip tests using multiprocessing if the current user cannot create a file in /dev/shm/ directory. Add the skip_if_broken_multiprocessing_synchronize() function to the test.support module. (cherry picked from commit ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881)
* bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)Miss Islington (bot)2020-06-151-1/+1
| | | | | (cherry picked from commit 5f79f46612c351bde78a41c5264c42db21008868) Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
* bpo-40275: More lazy imports in test.support (GH-20131)Hai Shi2020-05-191-1/+1
| | | | | | | | | | | | | | | | | | | Make the the following imports lazy in test.support: * bz2 * gzip * lzma * resource * zlib The following test.support decorators now need to be called with parenthesis: * @support.requires_bz2 * @support.requires_gzip * @support.requires_lzma * @support.requires_zlib For example, "@requires_zlib" becomes "@requires_zlib()".
* bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516)Ronald Oussoren2020-03-221-0/+12
| | | | | | | | | | | | | | | | | | | | | * bpo-22490: Remove "__PYVENV_LAUNCHER__" from the shell environment on macOS This changeset removes the environment varialbe "__PYVENV_LAUNCHER__" during interpreter launch as it is only needed to communicate between the stub executable in framework installs and the actual interpreter. Leaving the environment variable present may lead to misbehaviour when launching other scripts. * Actually commit the changes for issue 22490... * Correct typo Co-Authored-By: Nicola Soranzo <nicola.soranzo@gmail.com> * Run make patchcheck Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
* bpo-38901: Allow setting a venv's prompt to the basename of the current ↵Vinay Sajip2020-01-141-0/+9
| | | | | | directory. (GH-17946) When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to configure the prompt for the created venv.
* bpo-38927: Use python -m pip to upgrade venv deps (GH-17403)Tzu-ping Chung2019-11-271-3/+5
| | | I suggest you add `bpo-NNNNN: ` as a prefix for the first commit for future PRs. Thanks!
* bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330)Daniel Abrahamsson2019-09-111-0/+20
| | | | | | | | | | Before, running deactivate from a bash shell configured to treat undefined variables as errors (`set -u`) would produce a warning: ``` $ python3 -m venv test $ source test/bin/activate (test) $ deactivate -bash: $1: unbound variable ```
* bpo-37834: Normalise handling of reparse points on Windows (GH-15231)Steve Dower2019-08-211-5/+1
| | | | | | | | | | 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)
* Fix typos in comments, docs and test names (#15018)Min ho Kim2019-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)Steve Dower2019-07-261-2/+3
|
* bpo-37369: Fix initialization of sys members when launched via an app ↵Steve Dower2019-06-291-12/+19
| | | | | | | 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
* bpo-34556: Add --upgrade-deps to venv module (#13100)Cooper Lees2019-06-171-1/+23
| | | | | | | 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
* bpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816)Victor Stinner2019-06-041-2/+4
| | | | test_venv.test_mutiprocessing() now explicitly calls pool.terminate() to wait until the pool completes.
* bpo-36342: Fix test_multiprocessing in test_venv (GH-12513)xdegaye2019-05-301-1/+6
| | | | | | | when platform lacks a functioning sem_open implementation https://bugs.python.org/issue36342
* bpo-35978: Correctly skips venv tests in venvs (GH-12220)Steve Dower2019-03-211-5/+10
| | | Also fixes venvs from the build directory on Windows.
* bpo-35661: Fix failing test on buildbot (GH-12297)Cheryl Sabella2019-03-121-4/+6
|
* bpo-35661: Store the venv prompt in pyvenv.cfg (GH-11440)Cheryl Sabella2019-03-081-0/+6
|
* bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)Steve Dower2019-02-031-9/+2
| | | | 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.
* bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)Steve Dower2019-01-301-1/+0
|
* bpo-35797: Fix default executable used by the multiprocessing module (GH-11676)Steve Dower2019-01-251-0/+13
|
* bpo-34977: Use venv redirector instead of original python.exe on Windows ↵Steve Dower2018-12-101-0/+1
| | | | (GH-11029)
* Revert "bpo-34977: Add Windows App Store package (GH-10245)" (GH-11019)Victor Stinner2018-12-071-1/+0
| | | This reverts commit 468a15aaf9206448a744fc5eab3fc21f51966aad.
* bpo-34977: Add Windows App Store package (GH-10245)Steve Dower2018-12-061-0/+1
|
* Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400)Pablo Galindo2018-11-071-1/+1
| | | The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it.
* bpo-34011: Fixes missing venv files and other tests (GH-9458)Steve Dower2018-09-201-35/+32
|
* bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)Steve Dower2018-02-191-0/+18
|
* bpo-32088: Display Deprecation in debug mode (#4474)Victor Stinner2017-11-201-2/+5
| | | | | | | | 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.
* bpo-31999: Fix test_venv in case the zlib module is not available. (#4359)Serhiy Storchaka2017-11-101-1/+2
|
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-8/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Fixes #24875: Merged fix from 3.5.Vinay Sajip2017-02-021-8/+14
|\
| * Fixes #24875: pip can now be installed in a venv with --system-site-packages.Vinay Sajip2017-02-021-9/+16
| |
| * Issue #26610: Skip test_with_pip if _ctypes is not available in OpenIndianaBerker Peksag2016-09-181-0/+7
| |
* | Allow ensurepip even when ssl is unavailableDonald Stufft2016-11-021-8/+0
| |
* | Closes #22829: Added --prompt option to venv.Vinay Sajip2016-08-061-0/+11
| |
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| |
* | test_venv: enhance test_devnull()Victor Stinner2016-03-251-10/+9
| |
* | Skip test_venv.test_with_pip() if ctypes missVictor Stinner2016-03-251-0/+7
| | | | | | | | Issue #26610.
* | Merge 3.5 (test_venv)Victor Stinner2016-03-141-1/+10
|\ \ | |/
| * Fix test_venv on FreeBSD buildbotVictor Stinner2016-03-141-1/+10
| | | | | | | | Ignore pip warning in test_venv.test_with_venv().
* | Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-1/+1
|/ | | | to format short Python version.
* Issue #25366: Skip test_with_pip when threading module is not availableBerker Peksag2016-01-191-0/+7
| | | | | Some dependencies of pip import threading module unconditionally so we need to skip the test to make buildbots happy.
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-5/+2
| | | | | | | 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.
* test_venv: use support.rmtree() instead of shutil.rmtree() to fix sporadicVictor Stinner2014-10-101-11/+10
| | | | failures on Windows
* Issue #21643: Updated test and fixed logic bug in lib64 symlink creation.Vinay Sajip2014-06-031-11/+16
|
* Issue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.Vinay Sajip2014-04-151-0/+9
|
* Issue #20053: Mark as an expected failure for 3.4Nick Coghlan2014-02-071-2/+12
|
* Issue #20053: Actually test relevant assumptionNick Coghlan2014-02-071-1/+1
|
* Issue #20053: new test to check an assumptionNick Coghlan2014-02-051-0/+7
|