mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 12:20:02 +00:00
Match current logic.
This commit is contained in:
parent
49be6906c8
commit
0425b64041
@ -379,7 +379,10 @@ class QuoteOutput(ReallyEqualMixin, unittest.TestCase):
|
||||
check(u"\n", u"\"\\x0a\"", quote_newlines=True)
|
||||
|
||||
def test_quote_output_default(self):
|
||||
self.test_quote_output_utf8(None)
|
||||
"""Default is the encoding of sys.stdout if known, otherwise utf-8."""
|
||||
encoding = getattr(sys.stdout, "encoding") or "utf-8"
|
||||
self.assertEqual(quote_output(u"\u2621"),
|
||||
quote_output(u"\u2621", encoding=encoding))
|
||||
|
||||
|
||||
def win32_other(win32, other):
|
||||
|
Loading…
x
Reference in New Issue
Block a user