New submission from Karthikeyan Singaravelan <[email protected]>:
Running test_coroutines under -Werror raises error. It seems ZeroDivisionError
is expected and RuntimeWarning is raised and happens only under -Werror. This
test was added with e4d300e07c3 .
./python.exe -Werror -m test test_coroutines
Run tests sequentially
0:00:00 load avg: 2.02 [1/1] test_coroutines
test test_coroutines failed -- Traceback (most recent call last):
File
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_coroutines.py",
line 2263, in test_unawaited_warning_when_module_broken
self.assertEqual(cm.unraisable.exc_type, ZeroDivisionError)
AssertionError: <class 'RuntimeWarning'> != <class 'ZeroDivisionError'>
test_coroutines failed
== Tests result: FAILURE ==
1 test failed:
test_coroutines
Total duration: 436 ms
Tests result: FAILURE
----------
components: Tests
messages: 343974
nosy: vstinner, xtreak
priority: normal
severity: normal
status: open
title: test_coroutine.test_unawaited_warning_when_module_broken fails on -Werror
versions: Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com