-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
8 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,70 +86,6 @@ def test_log_coerced_utf8(self): | |
out, | ||
) | ||
|
||
@unittest.skipIf( | ||
sys.version_info[:2] >= (3, 8), | ||
"python > 3.8 doesn't allow changing filesystem default encoding", | ||
) | ||
def test_log_C(self): | ||
self.disable_missing_extensions_warning() | ||
out, err = self.run_log_quiet_long( | ||
["tree"], | ||
# C is not necessarily the default locale, so set both LANG and | ||
# LC_ALL explicitly because LC_ALL is preferred on (some?) Linux | ||
# systems but only LANG is respected on Windows. | ||
env_changes={ | ||
"LANG": "C", | ||
"LC_ALL": "C", | ||
"LC_CTYPE": None, | ||
"LANGUAGE": None, | ||
"PYTHONCOERCECLOCALE": "0", | ||
"PYTHONUTF8": "0", | ||
}, | ||
) | ||
self.assertEqual(b"", err) | ||
self.assertEqualDiff( | ||
b"""\ | ||
------------------------------------------------------------ | ||
revno: 1 | ||
committer: ???? Meinel <[email protected]> | ||
branch nick: tree | ||
timestamp: Thu 2006-08-24 20:28:17 +0000 | ||
message: | ||
Unicode ? commit | ||
""", | ||
out, | ||
) | ||
|
||
@unittest.skipIf( | ||
sys.version_info[:2] >= (3, 8), | ||
"python > 3.8 doesn't allow changing filesystem default encoding", | ||
) | ||
def test_log_BOGUS(self): | ||
out, err = self.run_log_quiet_long( | ||
["tree"], | ||
env_changes={ | ||
"LANG": "BOGUS", | ||
"LC_ALL": None, | ||
"LC_CTYPE": None, | ||
"LANGUAGE": None, | ||
"PYTHONCOERCECLOCALE": "0", | ||
"PYTHONUTF8": "0", | ||
}, | ||
) | ||
self.assertStartsWith(err, b"brz: WARNING: Error: unsupported locale setting") | ||
self.assertEqualDiff( | ||
b"""\ | ||
------------------------------------------------------------ | ||
revno: 1 | ||
committer: ???? Meinel <[email protected]> | ||
branch nick: tree | ||
timestamp: Thu 2006-08-24 20:28:17 +0000 | ||
message: | ||
Unicode ? commit | ||
""", | ||
out, | ||
) | ||
|
||
|
||
class TestMultibyteCodecs(tests.TestCaseWithTransport): | ||
"""Tests for quirks of multibyte encodings and their python codecs.""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters