MCPcopy Index your code
hub / github.com/python/cpython / test_cli_without_scm_ignore_files

Method test_cli_without_scm_ignore_files

Lib/test/test_venv.py:844–852  ·  view source on GitHub ↗

Test that ``--without-scm-ignore-files`` doesn't create SCM ignore files.

(self)

Source from the content-addressed store, hash-verified

842
843 @requireVenvCreate
844 def test_cli_without_scm_ignore_files(self):
845 """
846 Test that ``--without-scm-ignore-files`` doesn't create SCM ignore files.
847 """
848 args = ['--without-pip', '--without-scm-ignore-files', self.env_dir]
849 self.run_with_capture(venv.main, args)
850
851 with self.assertRaises(FileNotFoundError):
852 self.get_text_file_contents('.gitignore')
853
854 def test_venv_same_path(self):
855 same_path = venv.EnvBuilder._same_path

Callers

nothing calls this directly

Calls 3

run_with_captureMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected