Closed
Description
The following test currently crashes the runtime (stack trace included below).
class EnumerableTest(unittest.TestCase):
def testFirstAndLast(self):
values = [1, 2, 3]
self.assertTrue(Enumerable.First(values) == 1)
self.assertTrue(Enumerable.Last(values) == 3)
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Python.Runtime.MethodBinder.MatchParameters(MethodInfo[] mi, Type[] tp)
at Python.Runtime.MethodBinder.Bind(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, MethodInfo[] methodinfo)
at Python.Runtime.MethodBinder.Invoke(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, MethodInfo[] methodinfo)
at Python.Runtime.MethodObject.Invoke(IntPtr target, IntPtr args, IntPtr kw, MethodBase info)
at Python.Runtime.MethodBinding.tp_call(IntPtr ob, IntPtr args, IntPtr kw)
at Python.Runtime.Runtime.Py_Main(Int32 argc, String[] argv)
at Python.Runtime.PythonConsole.Main(String[] args)
Do you expect this to work correctly?
Thanks,
Metadata
Metadata
Assignees
Labels
No labels