1__doc__ = u""" 2>>> print(spam) 3eggseggseggseggs 4>>> print(uspam) 5eggseggseggseggs 6>>> print(bspam.decode('ascii')) 7eggseggseggseggs 8 9>>> print(grail) 10tomatotomatotomatotomatotomatotomatotomato 11>>> len(grail_long) 124200 13>>> print(ugrail) 14tomatotomatotomatotomatotomatotomatotomato 15>>> len(ugrail_long) 164200 17>>> print(bgrail.decode('ascii')) 18tomatotomatotomatotomatotomatotomatotomato 19>>> len(bgrail_long) 204200 21""" 22 23bspam = b"eggs" * 4 24bgrail = 7 * b"tomato" 25bgrail_long = 700 * b"tomato" 26 27spam = "eggs" * 4 28grail = 7 * "tomato" 29grail_long = 700 * "tomato" 30 31uspam = u"eggs" * 4 32ugrail = 7 * u"tomato" 33ugrail_long = 700 * u"tomato" 34 35cimport cython 36 37@cython.test_assert_path_exists("//StringNode[@value = '-----']") 38@cython.test_assert_path_exists("//StringNode[@unicode_value = '-----']") 39def gh3951(): 40 """ 41 Bug occurs with language_level=2 and affects StringNode.value 42 >>> gh3951() 43 '-----' 44 """ 45 return "-"*5 46