Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
test_exceptions of tools_threading_tests.BoundedThreadPoolTests fails because
the Error message is different.
____________________ BoundedThreadPoolTests.test_exceptions
____________________
self = <tests.tools_threading_tests.BoundedThreadPoolTests
testMethod=test_exceptions>
def test_exceptions(self) -> None:
"""Test exceptions when creating a bounded executor."""
with self.assertRaisesRegex(TypeError,
r'issubclass\(\) arg 1 must be a
class'):
BoundedPoolExecutor(PYTHON_VERSION)
with self.assertRaisesRegex(TypeError,
'expected a real subclass of '
r"'concurrent\.futures\.Executor'"):
BoundedPoolExecutor(TestCase)
with self.assertRaisesRegex(TypeError,
'expected a real subclass of '
r"'concurrent\.futures\.Executor'"):
BoundedPoolExecutor(Future)
with self.assertRaisesRegex(TypeError,
'expected a real subclass of '
r"'concurrent\.futures\.Executor'"):
BoundedPoolExecutor(Executor)
> with self.assertRaisesRegex(
TypeError, "duplicate base class
'?BoundedPoolExecutor'?"):
BoundedPoolExecutor(BoundedPoolExecutor)
with self.assertRaisesRegex(ValueError, "Minimum 'max_bound' is
1"):
BoundedPoolExecutor('ThreadPoolExecutor', 0)
with self.assertRaisesRegex(ValueError, "Minimum 'max_bound' is
1"):
BoundedPoolExecutor('ThreadPoolExecutor', max_bound=0)
if __name__ == '__main__':
with suppress(SystemExit):
E AssertionError: "duplicate base class '?BoundedPoolExecutor'?" does
not match "Cannot create a consistent method resolution
E order (MRO) for bases BoundedPoolExecutor"
TASK DETAIL
https://phabricator.wikimedia.org/T414215
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]