Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

add failing test with wrong error message #889

Merged
merged 1 commit into from
Aug 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/structures/test_iterator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from unittest import expectedFailure

from ..utils import TranspileTestCase


Expand Down Expand Up @@ -52,3 +54,12 @@ def __iter__(self):
for i in myinterview:
print(i)
""")

@expectedFailure
def test_bad_iter(self):
self.assertCodeExecution("""
try:
x = iter()
except TypeError as err:
print(err)
""")