[Bug 1875996] Review Request: python-typish - Python library for additional control over types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1875996

Robert-André Mauchin 🐧 <zebob.m@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zebob.m@xxxxxxxxx



--- Comment #1 from Robert-André Mauchin 🐧 <zebob.m@xxxxxxxxx> ---
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
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux