We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e60975 commit 1f146e6Copy full SHA for 1f146e6
1 file changed
Lib/test/test_decimal.py
@@ -1852,7 +1852,10 @@ async def parent():
1852
results['parent_after_prec'] = getcontext().prec
1853
return results
1854
1855
- results = asyncio.run(parent())
+ # Pass loop_factory so asyncio.run() doesn't lazily initialize the
1856
+ # global event loop policy, which would be reported as "env changed"
1857
+ # by regrtest (e.g. on iOS/Android where the policy starts as None).
1858
+ results = asyncio.run(parent(), loop_factory=asyncio.EventLoop)
1859
1860
# Child inherits the parent's precision value...
1861
self.assertEqual(results['child_initial_prec'], 33)
0 commit comments