summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fstring.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_fstring.py')
-rw-r--r--Lib/test/test_fstring.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py
index 3237b58..f6be64b 100644
--- a/Lib/test/test_fstring.py
+++ b/Lib/test/test_fstring.py
@@ -725,9 +725,11 @@ non-important content
# a function into a generator
def fn(y):
f'y:{yield y*2}'
+ f'{yield}'
g = fn(4)
self.assertEqual(next(g), 8)
+ self.assertEqual(next(g), None)
def test_yield_send(self):
def fn(x):