Skip to content
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

MOTOR-1106 ERROR: module 'os' has no attribute 'fork' (AttributeError) #199

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

juliusgeo
Copy link
Contributor

No description provided.

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -151,6 +152,7 @@ def __getitem__(self, name):


class ExecutorForkTest(AsyncIOTestCase):
@unittest.skipIf(sys.platform == "win32", "This test requires fork")
Copy link
Member

Choose a reason for hiding this comment

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

It would be more robust to do: hasattr(os, "fork")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@juliusgeo juliusgeo merged commit 16c476e into mongodb:master Mar 21, 2023
blink1073 pushed a commit that referenced this pull request Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants