1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

typo fixes in comment+docstring

This commit is contained in:
Carlo Teubner 2016-06-18 12:57:54 +01:00
parent 9a64835b4d
commit ff470f49f3
2 changed files with 2 additions and 2 deletions

View file

@ -2158,7 +2158,7 @@ def main(): # pragma: no cover
if os.path.basename(sys.argv[0]) == "borgfs": if os.path.basename(sys.argv[0]) == "borgfs":
sys.argv.insert(1, "mount") sys.argv.insert(1, "mount")
# Make sure stdout and stderr have errors='replace') to avoid unicode # Make sure stdout and stderr have errors='replace' to avoid unicode
# issues when print()-ing unicode file names # issues when print()-ing unicode file names
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, sys.stdout.encoding, 'replace', line_buffering=True) sys.stdout = io.TextIOWrapper(sys.stdout.buffer, sys.stdout.encoding, 'replace', line_buffering=True)
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, sys.stderr.encoding, 'replace', line_buffering=True) sys.stderr = io.TextIOWrapper(sys.stderr.buffer, sys.stderr.encoding, 'replace', line_buffering=True)

View file

@ -5,7 +5,7 @@
The selftest() function runs a small test suite of relatively fast tests that are meant to discover issues The selftest() function runs a small test suite of relatively fast tests that are meant to discover issues
with the way Borg was compiled or packaged and also bugs in Borg itself. with the way Borg was compiled or packaged and also bugs in Borg itself.
Theses tests are a subset of the borg/testsuite and are run with Pythons built-in unittest, hence none of These tests are a subset of the borg/testsuite and are run with Pythons built-in unittest, hence none of
the tests used for this can or should be ported to py.test currently. the tests used for this can or should be ported to py.test currently.
To assert that self test discovery works correctly the number of tests is kept in the SELFTEST_COUNT To assert that self test discovery works correctly the number of tests is kept in the SELFTEST_COUNT