Answer stability round 1: items 191 and 192 leave the plan, the decision and item 193 name the size test, and the test's temp dir is tmp

This commit is contained in:
2026-10-12 17:44:32 +02:00
committed by Lillem4n
parent ca20aff43d
commit 5bd978d2a1
3 changed files with 6 additions and 16 deletions
+3 -3
View File
@@ -19,9 +19,9 @@ def not_found(path):
class TagGuard(unittest.TestCase):
def setUp(self):
cwd = os.getcwd()
dir = tempfile.TemporaryDirectory()
self.addCleanup(dir.cleanup)
os.chdir(dir.name)
tmp = tempfile.TemporaryDirectory()
self.addCleanup(tmp.cleanup)
os.chdir(tmp.name)
self.addCleanup(os.chdir, cwd)
with open("CHANGELOG.md", "w", encoding="utf-8") as f:
f.write("# Changelog\n\n## [1.2.3]\n\n- A change.\n")