Skip to content

Commit 178d230

Browse files
committed
Add test.
1 parent a5ab825 commit 178d230

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_tuple.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2019, Oracle and/or its affiliates.
22
# Copyright (C) 1996-2017 Python Software Foundation
33
#
44
# Licensed under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
@@ -219,6 +219,10 @@ def __index__(self):
219219
return 1.0;
220220

221221
raiseTypeError(t, IndexF())
222+
223+
t = (NotImplemented,)
224+
self.assertEqual(t[0], NotImplemented)
225+
222226

223227
# Tests for Truffle specializations
224228
def test_lying_tuple(self):

0 commit comments

Comments
 (0)