##// END OF EJS Templates
Fix test on Python nightly
Matthias Bussonnier -
Show More
@@ -270,7 +270,8 b' def test_info():'
270 nt.assert_equal(i['type_name'], 'type')
270 nt.assert_equal(i['type_name'], 'type')
271 expted_class = str(type(type)) # <class 'type'> (Python 3) or <type 'type'>
271 expted_class = str(type(type)) # <class 'type'> (Python 3) or <type 'type'>
272 nt.assert_equal(i['base_class'], expted_class)
272 nt.assert_equal(i['base_class'], expted_class)
273 nt.assert_equal(i['string_form'], "<class 'IPython.core.tests.test_oinspect.Call'>")
273 if sys.version_info > (3,):
274 nt.assert_regex(i['string_form'], "<class 'IPython.core.tests.test_oinspect.Call'( at 0x[0-9a-f]{1,9})?>")
274 fname = __file__
275 fname = __file__
275 if fname.endswith(".pyc"):
276 if fname.endswith(".pyc"):
276 fname = fname[:-1]
277 fname = fname[:-1]
General Comments 0
You need to be logged in to leave comments. Login now