Commit f775e93
authored
Tests: Open SVN dump file in binary mode to prevent UnicodeDecodeError
The function `_create_svn_initools_repo` in `tests/lib/local_repos.py` was opening a downloaded SVN dump file using the default text mode (`'r'`).
Because SVN dump files contain binary data, this caused a `UnicodeDecodeError` on Windows and corrupted data due to newline translation when piping to `svnadmin`.
This commit changes the `open()` call to use `'rb'` (binary mode) to ensure the raw bytes are passed to `svnadmin` correctly.1 parent 915976c commit f775e93
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments