Commit 9746acb3 authored by Stefan Behnel's avatar Stefan Behnel

fix test in Py2.6

parent 5be7325d
......@@ -134,11 +134,11 @@ f'{a * x()}'"""
def test_docstring(self):
def f():
f'''Not a docstring'''
self.assertIsNone(f.__doc__)
self.assertTrue(f.__doc__ is None)
def g():
'''Not a docstring''' \
f''
self.assertIsNone(g.__doc__)
self.assertTrue(g.__doc__ is None)
def __test_literal_eval(self):
# With no expressions, an f-string is okay.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment