Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

test_gYearMonth.Test_gYearMonth.testBasic and test_date.Test_date.testArguments fails, test_gMonthDay.Test_gMonthDay.testBasic errors #133

Open
mcepl opened this issue Oct 25, 2021 · 0 comments

Comments

@mcepl
Copy link

mcepl commented Oct 25, 2021

When packaging pyxb for openSUSE, I see these tests failing even with patches from #111 and #123.

[   10s] ======================================================================
[   10s] ERROR: testBasic (test_gMonthDay.Test_gMonthDay)
[   10s] ----------------------------------------------------------------------
[   10s] Traceback (most recent call last):
[   10s]   File "/home/abuild/rpmbuild/BUILD/PyXB-1.2.6/pyxb/binding/basis.py", line 913, in __new__
[   10s]     return parent.__new__(cls, *args, **kw)
[   10s] ValueError: month must be in 1..12
[   10s]
[   10s] During handling of the above exception, another exception occurred:
[   10s]
[   10s] Traceback (most recent call last):
[   10s]   File "test_gMonthDay", line 19, in testBasic
[   10s]   File "/usr/lib64/python3.6/unittest/case.py", line 733, in assertRaises
[   10s]     return context.handle('assertRaises', args, kwargs)
[   10s]   File "/usr/lib64/python3.6/unittest/case.py", line 178, in handle
[   10s]     callable_obj(*args, **kwargs)
[   10s]   File "/home/abuild/rpmbuild/BUILD/PyXB-1.2.6/pyxb/binding/datatypes.py", line 698, in __new__
[   10s]     return super(_PyXBDateOnly_base, cls).__new__(cls, *argv, **kw)
[   10s]   File "/home/abuild/rpmbuild/BUILD/PyXB-1.2.6/pyxb/binding/basis.py", line 915, in __new__
[   10s]     raise pyxb.SimpleTypeValueError(cls, args)
[   10s] pyxb.exceptions_.SimpleTypeValueError: Type {http://www.w3.org/2001/XMLSchema}gMonthDay cannot be created from: (1900, 2002, 1)
[   10s]
[   10s] ======================================================================
[   10s] FAIL: testBasic (test_gYearMonth.Test_gYearMonth)
[   10s] ----------------------------------------------------------------------
[   10s] Traceback (most recent call last):
[   10s]   File "test_gYearMonth", line 17, in testBasic
[   10s] AssertionError: TypeError not raised by gYearMonth
[   10s]
[   10s] ======================================================================
[   10s] FAIL: testArguments (test_date.Test_date)
[   10s] ----------------------------------------------------------------------
[   10s] Traceback (most recent call last):
[   10s]   File "test_date", line 33, in testArguments
[   10s] AssertionError: TypeError not raised by date
[   10s]
[   10s] ----------------------------------------------------------------------
[   10s] Ran 754 tests in 0.762s
[   10s]
[   10s] FAILED (failures=2, errors=1)

_log.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant