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

Method test_create_scm_ignore_files_empty

Lib/test/test_venv.py:820–831  ·  view source on GitHub ↗

Test that no default ignore files are created when ``scm_ignore_files`` is empty.

(self)

Source from the content-addressed store, hash-verified

818
819 @requireVenvCreate
820 def test_create_scm_ignore_files_empty(self):
821 """
822 Test that no default ignore files are created when ``scm_ignore_files``
823 is empty.
824 """
825 # scm_ignore_files is set to frozenset() by default.
826 self.run_with_capture(venv.create, self.env_dir)
827 with self.assertRaises(FileNotFoundError):
828 self.get_text_file_contents('.gitignore')
829
830 self.assertIn("--without-scm-ignore-files",
831 self.get_text_file_contents('pyvenv.cfg'))
832
833 @requireVenvCreate
834 def test_cli_with_scm_ignore_files(self):

Callers

nothing calls this directly

Calls 4

run_with_captureMethod · 0.80
assertInMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected