Skip to content

Commit 1a12ff5

Browse files
committed
Improve DTDoctor
1 parent ee9f5fe commit 1a12ff5

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

devtools/browser.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -592,27 +592,33 @@ def write_json(self, obj):
592592
return key
593593

594594
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, "*"))
598597
print(platform.system())
599598
print(platform.release())
600599
print(platform.version())
601600
print(platform.uname())
602-
print("Looking for browser:")
601+
print("Looking for browser:".center(50, "*"))
603602
print(which_browser())
604-
print("Running a very simple test...")
605603
try:
604+
print("Looking for version info:".center(50, "*"))
606605
import subprocess, sys # noqa
607606
print(subprocess.check_output([sys.executable, '-m', 'pip', 'freeze']))
608607
print(subprocess.check_output(["git", "describe", "--all", "--tags", "--long", "--always",]))
609608
print(sys.version)
610609
print(sys.version_info)
611610
finally:
611+
print("Done with version info.".center(50, "*"))
612612
pass
613613
async def test():
614614
browser = await Browser(debug=True, debug_browser=True)
615615
await asyncio.sleep(2)
616616
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("")
618624
print("Thank you! Please share these results with us!")

0 commit comments

Comments
 (0)