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