los-cocos / cocos-testcmp

0 stars 1 forks source link

better handling snapshots with filesize 0 #1

Open ccanepa opened 3 years ago

ccanepa commented 3 years ago

While testing for cocos 0.6.9 on windows 7, a snapshot session that started with the console not having the focus produced at some point a traceback ending with

...
PIL.UnidentifiedImageError: cannot identify image file 'D:\\dev\\cocos-testcmp\\
work\\snp\\py3.7.7_p1467968c_Cfe6beb3\\test_acceldeccel_01.000.png'

The snapshots happened to have filesize==0