We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8d9e47 commit 3ffff0bCopy full SHA for 3ffff0b
main/githooks.py
@@ -461,9 +461,9 @@ class TestTrimTrailingWhitespace(unittest.TestCase):
461
def test_trim_trailing_whitespace(self):
462
content = 'first line\nsecond line \nthird line '
463
trimmed_content = 'first line\nsecond line\nthird line'
464
-
+
465
+ name = NamedTemporaryFile().name
466
try:
- name = NamedTemporaryFile().name
467
Path(name).write_text(content)
468
# Trailing whitespace found
469
retval = trim_trailing_whitespace_in_file(name, True, True)
0 commit comments