##// END OF EJS Templates
Add failing test for pretty repr of super() objects
Thomas Kluyver -
Show More
@@ -181,4 +181,19 b' def test_really_bad_repr():'
181 181 nt.assert_in("failed", output)
182 182 nt.assert_in("BadException: unknown", output)
183 183 nt.assert_in("unknown type", output)
184
185
186 class SA(object):
187 pass
188
189 class SB(SA):
190 pass
191
192 def test_super_repr():
193 output = pretty.pretty(super(SA))
194 nt.assert_in("SA", output)
195
196 sb = SB()
197 output = pretty.pretty(super(SA, sb))
198 nt.assert_in("SA", output)
184 199 No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now