File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
utils/update_checkout/tests Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 1313import os
1414
1515from . import scheme_mock
16- from unittest import mock
1716
1817
1918class CloneTestCase (scheme_mock .SchemeMockTestCase ):
@@ -57,27 +56,6 @@ def test_clone_with_additional_scheme(self):
5756 # Test that we're actually checking out the 'extra' scheme based on the output
5857 self .assertIn ("git checkout refs/heads/main" , output .decode ("utf-8" ))
5958
60- def test_manager_not_called_on_long_socket (self ):
61- fake_tmpdir = "/tmp/very/" + "/long" * 20 + "/tmp"
62-
63- with mock .patch ("tempfile.gettempdir" , return_value = fake_tmpdir ), mock .patch (
64- "multiprocessing.Manager"
65- ) as mock_manager :
66-
67- self .call (
68- [
69- self .update_checkout_path ,
70- "--config" ,
71- self .config_path ,
72- "--source-root" ,
73- self .source_root ,
74- "--clone" ,
75- ]
76- )
77- # Ensure that we do not try to create a Manager when the tempdir
78- # is too long.
79- mock_manager .assert_not_called ()
80-
8159
8260class SchemeWithMissingRepoTestCase (scheme_mock .SchemeMockTestCase ):
8361 def __init__ (self , * args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments