1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
'''
Crash with names selection of length >= 1024
'''
from pymol import cmd, util, testing, stored
@testing.requires_version('1.7.6.6')
class Test2588(testing.PyMOLTestCase):
def test(self):
for i in range(100):
cmd.pseudoatom('xxxxxxxxxx%04d' % i)
setting = 'sphere_color'
color = 'blue'
name = 'xxxxxxxxxx0005'
cmd.set(setting, color, name)
self.assertEqual(cmd.get(setting, name), color)
# crashes in 1.7.6.0 to 1.7.6.6
util.color_deep('red', 'all')
self.assertEqual(cmd.get(setting, name), 'default')
|