Skip to content

Commit 07f3363

Browse files
committed
Hacky make codecov see new lines are tested.
1 parent 5c38a5c commit 07f3363

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: test_simpleeval.py

+3
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,9 @@ class Foo:
12841284
def bar(self):
12851285
yield "Hello, world!"
12861286

1287+
# Test the genertor does work - also adds the `yield` to codecov...
1288+
assert list(Foo().bar()) == ["Hello, world!"]
1289+
12871290
evil = "foo.bar().gi_frame.f_globals['__builtins__'].exec('raise RuntimeError(\"Oh no\")')"
12881291

12891292
with self.assertRaises(FeatureNotAvailable):

0 commit comments

Comments
 (0)