Skip to content

fix(threads): fix the separate thread execution in 3.7, add tests #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

pavelfeldman
Copy link
Member

No description provided.

class TestThread(threading.Thread):
def run(self):
with sync_playwright() as playwright:
browser = playwright.__dict__[browser_name].launch()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: getattr would be better since "dunder methods" should not be used. But since its only a test I'm fine with it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dead code, it should have been deleted.

@@ -15,6 +15,7 @@
import os

import pytest
import threading
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import threading

@pavelfeldman pavelfeldman force-pushed the m37threads branch 2 times, most recently from ebfd78d to 501414b Compare December 10, 2020 20:33
@pavelfeldman pavelfeldman merged commit e9f2205 into microsoft:master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants