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

fix test in Py2.6

parent 5be7325d
...@@ -134,11 +134,11 @@ f'{a * x()}'""" ...@@ -134,11 +134,11 @@ f'{a * x()}'"""
def test_docstring(self): def test_docstring(self):
def f(): def f():
f'''Not a docstring''' f'''Not a docstring'''
self.assertIsNone(f.__doc__) self.assertTrue(f.__doc__ is None)
def g(): def g():
'''Not a docstring''' \ '''Not a docstring''' \
f'' f''
self.assertIsNone(g.__doc__) self.assertTrue(g.__doc__ is None)
def __test_literal_eval(self): def __test_literal_eval(self):
# With no expressions, an f-string is okay. # 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