Show More
@@ -51,7 +51,7 b' def test_cache():' | |||
|
51 | 51 | def setUp(): |
|
52 | 52 | # Check we're in a proper Python 2 environment (some imports, such |
|
53 | 53 | # as GTK, can change the default encoding, which can hide bugs.) |
|
54 |
nt.assert_equal(sys.getdefaultencoding(), "utf-8" |
|
|
54 | nt.assert_equal(sys.getdefaultencoding(), "utf-8") | |
|
55 | 55 | |
|
56 | 56 | def test_cache_unicode(): |
|
57 | 57 | cp = compilerop.CachingCompiler() |
@@ -227,8 +227,7 b' def test_info():' | |||
|
227 | 227 | nt.assert_equal(i['docstring'], Call.__doc__) |
|
228 | 228 | nt.assert_equal(i['source'], None) |
|
229 | 229 | nt.assert_true(i['isclass']) |
|
230 | _self_py2 = '' if py3compat.PY3 else 'self, ' | |
|
231 | nt.assert_equal(i['init_definition'], "Call(%sx, y=1)" % _self_py2) | |
|
230 | nt.assert_equal(i['init_definition'], "Call(x, y=1)") | |
|
232 | 231 | nt.assert_equal(i['init_docstring'], Call.__init__.__doc__) |
|
233 | 232 | |
|
234 | 233 | i = inspector.info(Call, detail_level=1) |
General Comments 0
You need to be logged in to leave comments.
Login now