summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2023-04-10 12:56:09 +0200
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2023-04-10 12:56:09 +0200
commit9e9836224b02a9db1a668db8652cb08657a8a9a3 (patch)
tree69fc9699ac2987e935ffa6c9c9fa55fb214d5bc3
parent1dd9aa76392cddf2ad7368840be7c0449f9de035 (diff)
downloadsetuptools-scm-9e9836224b02a9db1a668db8652cb08657a8a9a3.tar.gz
chore: remove test formatted write
-rw-r--r--testing/wd_wrapper.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/testing/wd_wrapper.py b/testing/wd_wrapper.py
index 4f856de..dd504ee 100644
--- a/testing/wd_wrapper.py
+++ b/testing/wd_wrapper.py
@@ -27,11 +27,8 @@ class WorkDir:
return run(cmd, cwd=self.cwd).stdout
- def write(self, name: str, content: str | bytes, **kw: object) -> Path:
+ def write(self, name: str, content: str | bytes) -> Path:
path = self.cwd / name
- if kw:
- assert isinstance(content, str)
- content = content.format(**kw)
if isinstance(content, bytes):
path.write_bytes(content)
else:
@@ -59,7 +56,7 @@ class WorkDir:
def commit_testfile(self, reason: str | None = None, signed: bool = False) -> None:
reason = self._reason(reason)
- self.write("test.txt", "test {reason}", reason=reason)
+ self.write("test.txt", f"test {reason}")
self(self.add_command)
self.commit(reason=reason, signed=signed)