Skip to content

Commit 7cbc15c

Browse files
committed
tests: fix NotImplemented to NotImplementedError in integration test
NotImplemented is a special singleton used for binary operator fallback, not an exception class. Using 'raise NotImplemented(...)' would raise TypeError instead of the intended error. Replace with NotImplementedError.
1 parent 0a5fcf8 commit 7cbc15c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/standard/test_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def test_can_insert_tuples_all_collection_datatypes(self):
583583

584584
# make sure we're testing all non primitive data types in the future
585585
if set(COLLECTION_TYPES) != set(['tuple', 'list', 'map', 'set']):
586-
raise NotImplemented('Missing datatype not implemented: {}'.format(
586+
raise NotImplementedError('Missing datatype not implemented: {}'.format(
587587
set(COLLECTION_TYPES) - set(['tuple', 'list', 'map', 'set'])
588588
))
589589

0 commit comments

Comments
 (0)