https://bugzilla.redhat.com/show_bug.cgi?id=1875996
Robert-André Mauchin 🐧 <zebob.m(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zebob.m(a)gmail.com
--- Comment #1 from Robert-André Mauchin 🐧 <zebob.m(a)gmail.com> ---
Got test failures:
=================================== FAILURES
===================================
____________________ TestInstanceOf.test_instance_of_union
_____________________
self = <tests.functions.test_instance_of.TestInstanceOf
testMethod=test_instance_of_union>
def test_instance_of_union(self):
self.assertTrue(instance_of(F(), Union[int, A]))
self.assertTrue(instance_of(F(), Union[A, int]))
self.assertTrue(instance_of(F(), Union[A, str]))
self.assertTrue(instance_of(F(), Optional[str]))
E
AssertionError: False is not true
tests/functions/test_instance_of.py:35: AssertionError
_________________ TestIsTypeAnnotation.test_is_type_annotation
_________________
self = <tests.functions.test_is_type_annotation.TestIsTypeAnnotation
testMethod=test_is_type_annotation>
def test_is_type_annotation(self):
# builtins and typing.
self.assertTrue(is_type_annotation(int))
self.assertTrue(is_type_annotation(List))
E
AssertionError: False is not true
tests/functions/test_is_type_annotation.py:21: AssertionError
____________________ TestSubclassOf.test_subclass_of_union
_____________________
self = <tests.functions.test_subclass_of.TestSubclassOf
testMethod=test_subclass_of_union>
def test_subclass_of_union(self):
self.assertTrue(subclass_of(F, Union[int, str]))
self.assertTrue(subclass_of(F, Union[A, int]))
self.assertTrue(subclass_of(F, Union[A, B]))
self.assertTrue(not subclass_of(int, Union[A, B]))
self.assertTrue(subclass_of(F, Optional[A]))
E
AssertionError: False is not true
tests/functions/test_subclass_of.py:70: AssertionError
=========================== short test summary info
============================
FAILED
tests/functions/test_instance_of.py::TestInstanceOf::test_instance_of_union
FAILED
tests/functions/test_is_type_annotation.py::TestIsTypeAnnotation::test_is_type_annotation
FAILED
tests/functions/test_subclass_of.py::TestSubclassOf::test_subclass_of_union
======================== 3 failed, 117 passed in 0.76s
=========================
See
https://github.com/ramonhagenaars/typish/issues/18
Consider disabling them for now?
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component