@@ -592,27 +592,33 @@ def write_json(self, obj):
592
592
return key
593
593
594
594
def diagnose ():
595
- print ("*****************************************" )
596
- print ("Please copy and paste all these results to an issue or to slack!" )
597
- print ("Collecting information about the system:" )
595
+ print ("*" .center (50 , "*" ))
596
+ print ("Collecting information about the system:" .center (50 , "*" ))
598
597
print (platform .system ())
599
598
print (platform .release ())
600
599
print (platform .version ())
601
600
print (platform .uname ())
602
- print ("Looking for browser:" )
601
+ print ("Looking for browser:" . center ( 50 , "*" ) )
603
602
print (which_browser ())
604
- print ("Running a very simple test..." )
605
603
try :
604
+ print ("Looking for version info:" .center (50 , "*" ))
606
605
import subprocess , sys # noqa
607
606
print (subprocess .check_output ([sys .executable , '-m' , 'pip' , 'freeze' ]))
608
607
print (subprocess .check_output (["git" , "describe" , "--all" , "--tags" , "--long" , "--always" ,]))
609
608
print (sys .version )
610
609
print (sys .version_info )
611
610
finally :
611
+ print ("Done with version info." .center (50 , "*" ))
612
612
pass
613
613
async def test ():
614
614
browser = await Browser (debug = True , debug_browser = True )
615
615
await asyncio .sleep (2 )
616
616
await browser .close ()
617
- asyncio .run (test ())
617
+ try :
618
+ print ("Running Asyncio Test" .center (50 , "*" ))
619
+ asyncio .run (test ())
620
+ finally :
621
+ print ("Asyncio.run done" .center (50 , "*" ))
622
+ pass
623
+ print ("" )
618
624
print ("Thank you! Please share these results with us!" )
0 commit comments