projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4131758
)
test_encodingutil: use self.patch rather than modifying encodingutil.io_encoding...
author
Daira Hopwood
<daira@jacaranda.org>
Mon, 2 Nov 2015 21:42:42 +0000
(21:42 +0000)
committer
Daira Hopwood
<daira@jacaranda.org>
Mon, 28 Dec 2015 16:18:54 +0000
(16:18 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_encodingutil.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_encodingutil.py
b/src/allmydata/test/test_encodingutil.py
index 1b700e99516bef9428ec4f46c1e7a56370d91b5c..9d6fe8f33f2e7d9bd8024366dc05d60ef14f9a24 100644
(file)
--- a/
src/allmydata/test/test_encodingutil.py
+++ b/
src/allmydata/test/test_encodingutil.py
@@
-400,13
+400,13
@@
class QuoteOutput(ReallyEqualMixin, unittest.TestCase):
check(u"\n", u"\"\\x0a\"", quote_newlines=True)
def test_quote_output_default(self):
- encodingutil.io_encoding = 'ascii'
+ self.patch(encodingutil, 'io_encoding', 'ascii')
self.test_quote_output_ascii(None)
- encodingutil.io_encoding = 'latin1'
+ self.patch(encodingutil, 'io_encoding', 'latin1')
self.test_quote_output_latin1(None)
- encodingutil.io_encoding = 'utf-8'
+ self.patch(encodingutil, 'io_encoding', 'utf-8')
self.test_quote_output_utf8(None)