FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-149879: Skip test_venv on Cygwin by vstinner · Pull Request #150418 · python/cpython · GitHub

Repository navigation

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 4 additions & 0 deletions Lib/test/support/venv.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sys
import sysconfig
import tempfile
import unittest
import venv


Expand Down Expand Up @@ -72,6 +73,9 @@ def run(self, *args, **subprocess_args):

class VirtualEnvironmentMixin:
def venv(self, name=None, **venv_create_args):
if sys.platform == 'cygwin':
raise unittest.SkipTest('FIXME: venv is broken on Cygwin')

venv_name = self.id()
if name:
venv_name += f'-{name}'
Expand Down
3 changes: 3 additions & 0 deletions Lib/test/test_venv.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
except ImportError:
ctypes = None

if sys.platform == 'cygwin':
raise unittest.SkipTest('FIXME: venv is broken on Cygwin')

# Platforms that set sys._base_executable can create venvs from within
# another venv, so no need to skip tests that require venv.create().
requireVenvCreate = unittest.skipUnless(
Expand Down
Loading

Back | FazBrowse Home | New Git URL