[New-bugs-announce] [issue37100] test_coroutine.test_unawaited_warning_when_module_broken fails on -Werror

Karthikeyan Singaravelan report at bugs.python.org
Thu May 30 08:57:05 EDT 2019


New submission from Karthikeyan Singaravelan <tir.karthi at gmail.com>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue37100>
_______________________________________


More information about the New-bugs-announce mailing list