summaryrefslogtreecommitdiffstats
path: root/tests/test_git_config.py
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2022-11-08 00:54:56 +0000
committerLaMont Jones <lamontjones@google.com>2022-11-08 00:54:56 +0000
commit5fb9c6a5b35220e27b3acd5861318584588cd0d8 (patch)
treed3d3a7d6d021e1547d9f22875aea57a717540f92 /tests/test_git_config.py
parent859d3d958057e35b618e8cca209a85317d49a974 (diff)
downloadgit-repo-5fb9c6a5b35220e27b3acd5861318584588cd0d8.tar.gz
v2.29.7: Revert back to v2.29.5v2.29.7
This change reverts stable to v2.29.5, to fix clients that received v2.29.6, and keep future updates simpler. Change-Id: I2f5c52c466b7321665c9699ccdbf98f928483fee
Diffstat (limited to 'tests/test_git_config.py')
-rw-r--r--tests/test_git_config.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/test_git_config.py b/tests/test_git_config.py
index 0df38430..a4fad9ef 100644
--- a/tests/test_git_config.py
+++ b/tests/test_git_config.py
@@ -19,7 +19,6 @@ import tempfile
19import unittest 19import unittest
20 20
21import git_config 21import git_config
22import repo_trace
23 22
24 23
25def fixture(*paths): 24def fixture(*paths):
@@ -34,16 +33,9 @@ class GitConfigReadOnlyTests(unittest.TestCase):
34 def setUp(self): 33 def setUp(self):
35 """Create a GitConfig object using the test.gitconfig fixture. 34 """Create a GitConfig object using the test.gitconfig fixture.
36 """ 35 """
37
38 self.tempdirobj = tempfile.TemporaryDirectory(prefix='repo_tests')
39 repo_trace._TRACE_FILE = os.path.join(self.tempdirobj.name, 'TRACE_FILE_from_test')
40
41 config_fixture = fixture('test.gitconfig') 36 config_fixture = fixture('test.gitconfig')
42 self.config = git_config.GitConfig(config_fixture) 37 self.config = git_config.GitConfig(config_fixture)
43 38
44 def tearDown(self):
45 self.tempdirobj.cleanup()
46
47 def test_GetString_with_empty_config_values(self): 39 def test_GetString_with_empty_config_values(self):
48 """ 40 """
49 Test config entries with no value. 41 Test config entries with no value.
@@ -117,15 +109,9 @@ class GitConfigReadWriteTests(unittest.TestCase):
117 """Read/write tests of the GitConfig class.""" 109 """Read/write tests of the GitConfig class."""
118 110
119 def setUp(self): 111 def setUp(self):
120 self.tempdirobj = tempfile.TemporaryDirectory(prefix='repo_tests')
121 repo_trace._TRACE_FILE = os.path.join(self.tempdirobj.name, 'TRACE_FILE_from_test')
122
123 self.tmpfile = tempfile.NamedTemporaryFile() 112 self.tmpfile = tempfile.NamedTemporaryFile()
124 self.config = self.get_config() 113 self.config = self.get_config()
125 114
126 def tearDown(self):
127 self.tempdirobj.cleanup()
128
129 def get_config(self): 115 def get_config(self):
130 """Get a new GitConfig instance.""" 116 """Get a new GitConfig instance."""
131 return git_config.GitConfig(self.tmpfile.name) 117 return git_config.GitConfig(self.tmpfile.name)