[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 20e6e5636a06fe5e1472062918d0a302d82a71c3 by Andrew Svetlov in 
branch 'main':
bpo-47118: Fix asyncio.Runner tests error (32117)
https://github.com/python/cpython/commit/20e6e5636a06fe5e1472062918d0a302d82a71c3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +30192
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/32117

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for the report!
I read it ad 'decimal context tests modifies the environment'.
I'll update asyncio runner test to ignore external contextvars.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

$ ./python -m test -vuall test_asyncio
...
==
FAIL: test_run_keeps_context (test.test_asyncio.test_runners.RunnerTests)
--
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_asyncio/test_runners.py", line 
299, in test_run_keeps_context
self.assertEqual({cvar: 2}, dict(runner.run(get_context(

AssertionError: {: 2} != {: 2, : 2}
?  ^

+ {: 2,
?  ^

+  : Context(prec=28, 
rounding=ROUND_HALF_EVEN, Emin=-99, Emax=99, capitals=1, clamp=0, 
flags=[], traps=[InvalidOperation, DivisionByZero, Overflow])}

--


When run the test separately it passes successfully.

--
components: Tests, asyncio
messages: 416000
nosy: asvetlov, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: test_run_keeps_context in test_asyncio fails
type: behavior
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com