Lines Matching +full:paths +full:- +full:ignore
4 Copyright (C) 2011-2012 Vinay Sajip.
62 self.exe = os.path.split(executable)[-1]
82 def get_text_file_contents(self, *args, encoding='utf-8'):
167 '-m',
170 '--upgrade',
189 cmd = [envpy, '-c', None]
204 ('Lib', 'site-packages'),
212 ('lib', 'python%d.%d' % sys.version_info[:2], 'site-packages'),
215 def create_contents(self, paths, filename): argument
220 for subdirs in paths:
255 for paths in self.ENV_SUBDIRS[:3]:
256 fn = os.path.join(self.env_dir, *paths)
285 Test isolation from system site-packages
291 self.assertIn('include-system-site-packages = %s\n' % s, data)
316 # to the source build - so Python can't initialise properly.
326 out, err = check_output([envpy, '-c',
340 out, err = check_output([envpy, '-c',
347 Test handling of Unicode paths
356 [activate, '&', self.exe, '-c', 'print(0)'],
366 # bpo-36342: Instantiation of a Pool object imports the
375 out, err = check_output([envpy, '-c',
393 f.write("set -euo pipefail\n"
409 out, err = check_output([envpy, '-c',
419 out, err = check_output([envpy, '-c',
423 err = err.decode("latin-1") # Force to text, prevent decoding errors
425 out = out.decode("latin-1") # Force to text, prevent decoding errors
452 # pip's cross-version compatibility may trigger deprecation
455 envvars["PYTHONWARNINGS"] = "ignore"
462 # Also check that we ignore the pip configuration file
466 bad_config = "[global]\nno-install=1"
468 # cross-platform variation in test code behaviour
480 # config in place to ensure we ignore it
493 # Ignore DeprecationWarning since pip code is not part of Python
494 out, err = check_output([envpy, '-W', 'ignore::DeprecationWarning',
495 '-W', 'ignore::ImportWarning', '-I',
496 '-m', 'pip', '--version'])
499 err = err.decode("latin-1") # Force to text, prevent decoding errors
501 out = out.decode("latin-1") # Force to text, prevent decoding errors
504 env_dir = os.fsencode(self.env_dir).decode("latin-1")
513 envvars["PYTHONWARNINGS"] = "ignore"
515 '-W', 'ignore::DeprecationWarning',
516 '-W', 'ignore::ImportWarning', '-I',
517 '-m', 'ensurepip._uninstall'])
520 err = err.decode("latin-1") # Force to text, prevent decoding errors
521 # Ignore the warning:
525 # executing pip with sudo, you may want sudo's -H flag."
534 out = out.decode("latin-1") # Force to text, prevent decoding errors
539 # other case, pip may still be available in the system site-packages