| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ def __init__( | |||
| 62 | 62 | def __bytes__(self) -> bytes: | |
| 63 | 63 | def _indent_or_none(part: bytes | None) -> bytes: | |
| 64 | 64 | if part: | |
| 65 | - return b'\n ' + part.replace(b'\n', b'\n ') | ||
| 65 | + return b'\n ' + part.replace(b'\n', b'\n ').rstrip() | ||
| 66 | 66 | else: | |
| 67 | 67 | return b' (none)' | |
| 68 | 68 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -425,9 +425,7 @@ def test_failed_diff_does_not_discard_changes(in_git_dir, patch_dir): | |||
| 425 | 425 | r'stdout: \(none\)\n' | |
| 426 | 426 | r'stderr:\n' | |
| 427 | 427 | r' error: open\("1"\): Permission denied\n' | |
| 428 | - r' fatal: cannot hash 1\n' | ||
| 429 | - # TODO: not sure why there's weird whitespace here | ||
| 430 | - r' $', | ||
| 428 | + r' fatal: cannot hash 1$', | ||
| 431 | 429 | ).assert_matches(msg) | |
| 432 | 430 | ||
| 433 | 431 | # even though it errored, the unstaged changes should still be present | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | 18 | def test_CalledProcessError_str(): | |
| 19 | - error = CalledProcessError(1, ('exe',), b'output', b'errors') | ||
| 19 | + error = CalledProcessError(1, ('exe',), b'output\n', b'errors\n') | ||
| 20 | 20 | assert str(error) == ( | |
| 21 | 21 | "command: ('exe',)\n" | |
| 22 | 22 | 'return code: 1\n' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments