0s autopkgtest [14:52:13]: starting date and time: 2024-11-09 14:52:13+0000 0s autopkgtest [14:52:13]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [14:52:13]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.h4gt6srs/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:isodate --apt-upgrade rdflib --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=isodate/0.7.0-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-s390x-5.secgroup --name adt-plucky-s390x-rdflib-20241109-145213-juju-7f2275-prod-proposed-migration-environment-15-87684b51-3d0b-4475-bab8-e47c9056d7b0 --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 149s autopkgtest [14:54:42]: testbed dpkg architecture: s390x 149s autopkgtest [14:54:42]: testbed apt version: 2.9.8 149s autopkgtest [14:54:42]: @@@@@@@@@@@@@@@@@@@@ test bed setup 150s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 150s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [104 kB] 151s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [1004 kB] 152s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 152s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 152s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [125 kB] 152s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [696 kB] 153s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [16.6 kB] 153s Fetched 2043 kB in 3s (621 kB/s) 153s Reading package lists... 155s Reading package lists... 155s Building dependency tree... 155s Reading state information... 155s Calculating upgrade... 155s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 155s Reading package lists... 156s Building dependency tree... 156s Reading state information... 156s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 156s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 156s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 156s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 156s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 157s Reading package lists... 157s Reading package lists... 157s Building dependency tree... 157s Reading state information... 157s Calculating upgrade... 157s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 157s Reading package lists... 157s Building dependency tree... 157s Reading state information... 157s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 160s autopkgtest [14:54:53]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 160s autopkgtest [14:54:53]: @@@@@@@@@@@@@@@@@@@@ apt-source rdflib 165s Get:1 http://ftpmaster.internal/ubuntu plucky/universe rdflib 7.0.0-1 (dsc) [2840 B] 165s Get:2 http://ftpmaster.internal/ubuntu plucky/universe rdflib 7.0.0-1 (tar) [5024 kB] 165s Get:3 http://ftpmaster.internal/ubuntu plucky/universe rdflib 7.0.0-1 (diff) [32.0 kB] 165s gpgv: Signature made Sat Jun 15 12:54:16 2024 UTC 165s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 165s gpgv: issuer "tchet@debian.org" 165s gpgv: Can't check signature: No public key 165s dpkg-source: warning: cannot verify inline signature for ./rdflib_7.0.0-1.dsc: no acceptable signature found 165s autopkgtest [14:54:58]: testing package rdflib version 7.0.0-1 166s autopkgtest [14:54:59]: build not needed 168s autopkgtest [14:55:01]: test python3: preparing testbed 172s Reading package lists... 172s Building dependency tree... 172s Reading state information... 172s Starting pkgProblemResolver with broken count: 0 172s Starting 2 pkgProblemResolver with broken count: 0 172s Done 172s The following additional packages will be installed: 172s libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 172s libjs-jquery-metadata libjs-jquery-tablesorter 172s libjs-jquery-throttle-debounce libjs-sphinxdoc libjs-underscore 172s python-rdflib-doc python-rdflib-tools python3-coverage python3-html5lib 172s python3-iniconfig python3-isodate python3-packaging python3-pip 172s python3-pluggy python3-pytest python3-pytest-cov python3-rdflib 172s python3-sparqlwrapper python3-webencodings python3-wheel 172s Suggested packages: 172s python-coverage-doc python3-genshi python3-lxml 172s Recommended packages: 172s javascript-common build-essential python3-dev 172s The following NEW packages will be installed: 172s autopkgtest-satdep libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 172s libjs-jquery-metadata libjs-jquery-tablesorter 172s libjs-jquery-throttle-debounce libjs-sphinxdoc libjs-underscore 172s python-rdflib-doc python-rdflib-tools python3-coverage python3-html5lib 172s python3-iniconfig python3-isodate python3-packaging python3-pip 172s python3-pluggy python3-pytest python3-pytest-cov python3-rdflib 172s python3-sparqlwrapper python3-webencodings python3-wheel 172s 0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded. 172s Need to get 4119 kB/4120 kB of archives. 172s After this operation, 32.4 MB of additional disk space will be used. 172s Get:1 /tmp/autopkgtest.ljHRfb/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [772 B] 172s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 173s Get:3 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-hotkeys all 0~20130707+git2d51e3a9+dfsg-2.1 [11.5 kB] 173s Get:4 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-metadata all 12-4 [6582 B] 173s Get:5 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 173s Get:6 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 173s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 173s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-sphinxdoc all 7.4.7-3 [157 kB] 173s Get:9 http://ftpmaster.internal/ubuntu plucky/universe s390x python-rdflib-doc all 7.0.0-1 [778 kB] 174s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x python3-isodate all 0.7.0-1 [18.6 kB] 174s Get:11 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-rdflib all 7.0.0-1 [405 kB] 174s Get:12 http://ftpmaster.internal/ubuntu plucky/universe s390x python-rdflib-tools all 7.0.0-1 [9624 B] 174s Get:13 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-coverage s390x 7.4.4+dfsg1-0ubuntu2 [147 kB] 174s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x python3-webencodings all 0.5.1-5 [11.5 kB] 174s Get:15 http://ftpmaster.internal/ubuntu plucky/main s390x python3-html5lib all 1.2-1 [90.8 kB] 174s Get:16 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 174s Get:17 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.1-1 [41.4 kB] 174s Get:18 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-wheel all 0.44.0-1 [54.2 kB] 174s Get:19 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pip all 24.2+dfsg-1 [1398 kB] 175s Get:20 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 175s Get:21 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.2-1 [251 kB] 175s Get:22 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 175s Get:23 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest-cov all 5.0.0-1 [21.3 kB] 175s Get:24 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-sparqlwrapper all 2.0.0-2 [37.0 kB] 175s Fetched 4119 kB in 3s (1430 kB/s) 175s Selecting previously unselected package libjs-jquery. 175s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 55520 files and directories currently installed.) 175s Preparing to unpack .../00-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 175s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 175s Selecting previously unselected package libjs-jquery-hotkeys. 175s Preparing to unpack .../01-libjs-jquery-hotkeys_0~20130707+git2d51e3a9+dfsg-2.1_all.deb ... 175s Unpacking libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2.1) ... 175s Selecting previously unselected package libjs-jquery-metadata. 175s Preparing to unpack .../02-libjs-jquery-metadata_12-4_all.deb ... 175s Unpacking libjs-jquery-metadata (12-4) ... 175s Selecting previously unselected package libjs-jquery-tablesorter. 175s Preparing to unpack .../03-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 175s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 175s Selecting previously unselected package libjs-jquery-throttle-debounce. 175s Preparing to unpack .../04-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 175s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 175s Selecting previously unselected package libjs-underscore. 175s Preparing to unpack .../05-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 175s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 175s Selecting previously unselected package libjs-sphinxdoc. 175s Preparing to unpack .../06-libjs-sphinxdoc_7.4.7-3_all.deb ... 175s Unpacking libjs-sphinxdoc (7.4.7-3) ... 175s Selecting previously unselected package python-rdflib-doc. 175s Preparing to unpack .../07-python-rdflib-doc_7.0.0-1_all.deb ... 175s Unpacking python-rdflib-doc (7.0.0-1) ... 175s Selecting previously unselected package python3-isodate. 175s Preparing to unpack .../08-python3-isodate_0.7.0-1_all.deb ... 175s Unpacking python3-isodate (0.7.0-1) ... 175s Selecting previously unselected package python3-rdflib. 175s Preparing to unpack .../09-python3-rdflib_7.0.0-1_all.deb ... 175s Unpacking python3-rdflib (7.0.0-1) ... 176s Selecting previously unselected package python-rdflib-tools. 176s Preparing to unpack .../10-python-rdflib-tools_7.0.0-1_all.deb ... 176s Unpacking python-rdflib-tools (7.0.0-1) ... 176s Selecting previously unselected package python3-coverage. 176s Preparing to unpack .../11-python3-coverage_7.4.4+dfsg1-0ubuntu2_s390x.deb ... 176s Unpacking python3-coverage (7.4.4+dfsg1-0ubuntu2) ... 176s Selecting previously unselected package python3-webencodings. 176s Preparing to unpack .../12-python3-webencodings_0.5.1-5_all.deb ... 176s Unpacking python3-webencodings (0.5.1-5) ... 176s Selecting previously unselected package python3-html5lib. 176s Preparing to unpack .../13-python3-html5lib_1.2-1_all.deb ... 176s Unpacking python3-html5lib (1.2-1) ... 176s Selecting previously unselected package python3-iniconfig. 176s Preparing to unpack .../14-python3-iniconfig_1.1.1-2_all.deb ... 176s Unpacking python3-iniconfig (1.1.1-2) ... 176s Selecting previously unselected package python3-packaging. 176s Preparing to unpack .../15-python3-packaging_24.1-1_all.deb ... 176s Unpacking python3-packaging (24.1-1) ... 176s Selecting previously unselected package python3-wheel. 176s Preparing to unpack .../16-python3-wheel_0.44.0-1_all.deb ... 176s Unpacking python3-wheel (0.44.0-1) ... 176s Selecting previously unselected package python3-pip. 176s Preparing to unpack .../17-python3-pip_24.2+dfsg-1_all.deb ... 176s Unpacking python3-pip (24.2+dfsg-1) ... 176s Selecting previously unselected package python3-pluggy. 176s Preparing to unpack .../18-python3-pluggy_1.5.0-1_all.deb ... 176s Unpacking python3-pluggy (1.5.0-1) ... 176s Selecting previously unselected package python3-pytest. 176s Preparing to unpack .../19-python3-pytest_8.3.2-1_all.deb ... 176s Unpacking python3-pytest (8.3.2-1) ... 176s Selecting previously unselected package libjs-jquery-isonscreen. 176s Preparing to unpack .../20-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 176s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 176s Selecting previously unselected package python3-pytest-cov. 176s Preparing to unpack .../21-python3-pytest-cov_5.0.0-1_all.deb ... 176s Unpacking python3-pytest-cov (5.0.0-1) ... 176s Selecting previously unselected package python3-sparqlwrapper. 176s Preparing to unpack .../22-python3-sparqlwrapper_2.0.0-2_all.deb ... 176s Unpacking python3-sparqlwrapper (2.0.0-2) ... 176s Selecting previously unselected package autopkgtest-satdep. 176s Preparing to unpack .../23-1-autopkgtest-satdep.deb ... 176s Unpacking autopkgtest-satdep (0) ... 176s Setting up python3-iniconfig (1.1.1-2) ... 176s Setting up python3-coverage (7.4.4+dfsg1-0ubuntu2) ... 176s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 176s Setting up python3-wheel (0.44.0-1) ... 176s Setting up python3-webencodings (0.5.1-5) ... 176s Setting up python3-isodate (0.7.0-1) ... 176s Setting up python3-packaging (24.1-1) ... 176s Setting up python3-pip (24.2+dfsg-1) ... 177s Setting up python3-html5lib (1.2-1) ... 178s Setting up python3-pluggy (1.5.0-1) ... 178s Setting up python3-rdflib (7.0.0-1) ... 178s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 178s Setting up libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2.1) ... 178s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 178s Setting up python-rdflib-tools (7.0.0-1) ... 178s Setting up python3-sparqlwrapper (2.0.0-2) ... 178s Setting up python3-pytest (8.3.2-1) ... 178s Setting up libjs-jquery-metadata (12-4) ... 178s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 178s Setting up libjs-sphinxdoc (7.4.7-3) ... 178s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 178s Setting up python-rdflib-doc (7.0.0-1) ... 178s Setting up python3-pytest-cov (5.0.0-1) ... 178s Setting up autopkgtest-satdep (0) ... 178s Processing triggers for man-db (2.12.1-3) ... 181s (Reading database ... 57306 files and directories currently installed.) 181s Removing autopkgtest-satdep (0) ... 182s autopkgtest [14:55:15]: test python3: [----------------------- 187s ============================= test session starts ============================== 187s platform linux -- Python 3.12.7+, pytest-8.3.2, pluggy-1.5.0 187s rootdir: /tmp/autopkgtest.ljHRfb/build.gJw/src 187s configfile: pyproject.toml 187s plugins: typeguard-4.4.1, cov-5.0.0 187s collected 7629 items / 1 deselected / 1 skipped / 7628 selected 187s 187s docs/namespaces_and_bindings.rst . [ 0%] 187s docs/rdf_terms.rst . [ 0%] 187s test/data/suites/trix/test_trix.py ..........x....xxx..xxx.xxx.......... [ 0%] 187s ......x..x.x...................xxxxxxxxx [ 1%] 187s test/jsonld/test_api.py . [ 1%] 187s test/jsonld/test_compaction.py ........... [ 1%] 187s test/jsonld/test_context.py .................... [ 1%] 187s test/jsonld/test_localsuite.py ... [ 1%] 187s test/jsonld/test_named_graphs.py ... [ 1%] 187s test/jsonld/test_onedotone.py .......................................... [ 2%] 188s ........................................................................ [ 3%] 189s ........................................................................ [ 3%] 191s ........................................................................ [ 4%] 191s .... [ 4%] 191s test/jsonld/test_pythonparse.py . [ 4%] 191s test/jsonld/test_testsuite.py .......................................... [ 5%] 191s ........................................................................ [ 6%] 191s ............. [ 6%] 191s test/jsonld/test_util.py x................. [ 6%] 191s test/test_conjunctivegraph/test_conjunctive_graph.py ..... [ 6%] 191s test/test_conjunctivegraph/test_conjunctivegraph_generators.py ........ [ 7%] 191s test/test_conjunctivegraph/test_conjunctivegraph_operator_combinations.py . [ 7%] 191s .... [ 7%] 191s test/test_dataset/test_dataset.py ..... [ 7%] 191s test/test_dataset/test_dataset_default_graph.py .................... [ 7%] 191s test/test_dataset/test_dataset_generators.py ........ [ 7%] 196s test/test_examples.py ....s.............. [ 7%] 196s test/test_extras/test_extras_external_graph_libs.py ss [ 7%] 196s test/test_extras/test_infixowl/test_annotatableterms.py ... [ 7%] 196s test/test_extras/test_infixowl/test_basic.py .... [ 7%] 197s test/test_extras/test_infixowl/test_booleanclass.py xx...... [ 8%] 197s test/test_extras/test_infixowl/test_class.py ....... [ 8%] 197s test/test_extras/test_infixowl/test_componentterms.py ... [ 8%] 197s test/test_extras/test_infixowl/test_context.py . [ 8%] 198s test/test_extras/test_infixowl/test_cover.py ................... [ 8%] 198s test/test_extras/test_infixowl/test_enumerated_class.py .. [ 8%] 198s test/test_extras/test_infixowl/test_individual.py ..... [ 8%] 198s test/test_extras/test_infixowl/test_logic_structuring.py . [ 8%] 198s test/test_extras/test_infixowl/test_manchester_syntax.py .. [ 8%] 198s test/test_extras/test_infixowl/test_ontology.py .. [ 8%] 198s test/test_extras/test_infixowl/test_property.py . [ 8%] 198s test/test_extras/test_infixowl/test_restriction.py ...............x [ 8%] 198s test/test_extras/test_infixowl/test_rubric.py ........ [ 8%] 198s test/test_graph/test_aggregate_graphs.py .. [ 8%] 198s test/test_graph/test_batch_add.py .......... [ 9%] 198s test/test_graph/test_canonicalization.py ..........x [ 9%] 198s test/test_graph/test_container.py ................. [ 9%] 199s test/test_graph/test_diff.py ..x..x [ 9%] 200s test/test_graph/test_graph.py .................. [ 9%] 200s test/test_graph/test_graph_cbd.py .... [ 9%] 200s test/test_graph/test_graph_context.py .......... [ 9%] 200s test/test_graph/test_graph_formula.py .. [ 9%] 200s test/test_graph/test_graph_generators.py ....... [ 10%] 202s test/test_graph/test_graph_http.py ....... [ 10%] 202s test/test_graph/test_graph_items.py . [ 10%] 202s test/test_graph/test_graph_operator.py ... [ 10%] 202s test/test_graph/test_graph_redirect.py . [ 10%] 202s test/test_graph/test_graph_store.py ........................... [ 10%] 202s test/test_graph/test_namespace_rebinding.py ....x......... [ 10%] 202s test/test_graph/test_skolemization.py ......... [ 10%] 202s test/test_graph/test_slice.py . [ 10%] 203s test/test_graph/test_variants.py ..x..x......x [ 11%] 203s test/test_having.py ... [ 11%] 203s test/test_issues/test_issue084.py ........ [ 11%] 203s test/test_issues/test_issue1003.py ......... [ 11%] 203s test/test_issues/test_issue1043.py . [ 11%] 203s test/test_issues/test_issue1141.py ... [ 11%] 203s test/test_issues/test_issue1160.py . [ 11%] 203s test/test_issues/test_issue1404.py . [ 11%] 203s test/test_issues/test_issue1484.py .. [ 11%] 203s test/test_issues/test_issue160.py . [ 11%] 203s test/test_issues/test_issue161.py . [ 11%] 203s test/test_issues/test_issue1808.py . [ 11%] 203s test/test_issues/test_issue184.py . [ 11%] 203s test/test_issues/test_issue1873.py .. [ 11%] 203s test/test_issues/test_issue190.py xx [ 11%] 203s test/test_issues/test_issue1998.py . [ 11%] 203s test/test_issues/test_issue200.py . [ 11%] 203s test/test_issues/test_issue209.py . [ 11%] 203s test/test_issues/test_issue223.py . [ 11%] 203s test/test_issues/test_issue247.py . [ 11%] 203s test/test_issues/test_issue248.py . [ 11%] 203s test/test_issues/test_issue274.py ................................. [ 12%] 203s test/test_issues/test_issue363.py .. [ 12%] 203s test/test_issues/test_issue379.py .. [ 12%] 203s test/test_issues/test_issue381.py ....... [ 12%] 203s test/test_issues/test_issue432.py . [ 12%] 203s test/test_issues/test_issue446.py . [ 12%] 203s test/test_issues/test_issue492.py . [ 12%] 203s test/test_issues/test_issue523.py . [ 12%] 203s test/test_issues/test_issue532.py . [ 12%] 203s test/test_issues/test_issue535.py . [ 12%] 203s test/test_issues/test_issue545.py . [ 12%] 203s test/test_issues/test_issue554.py . [ 12%] 203s test/test_issues/test_issue563.py .. [ 12%] 203s test/test_issues/test_issue579.py . [ 12%] 203s test/test_issues/test_issue604.py . [ 12%] 203s test/test_issues/test_issue655.py . [ 12%] 203s test/test_issues/test_issue715.py . [ 12%] 203s test/test_issues/test_issue733.py .. [ 12%] 203s test/test_issues/test_issue801.py . [ 12%] 203s test/test_issues/test_issue893.py . [ 12%] 203s test/test_issues/test_issue910.py .... [ 12%] 203s test/test_issues/test_issue920.py . [ 12%] 203s test/test_issues/test_issue923.py . [ 12%] 203s test/test_issues/test_issue953.py . [ 12%] 203s test/test_issues/test_issue977.py .. [ 12%] 203s test/test_issues/test_issue980.py . [ 12%] 203s test/test_issues/test_issue_git_200.py . [ 12%] 203s test/test_issues/test_issue_git_336.py . [ 12%] 203s test/test_literal/test_datetime.py ....... [ 12%] 203s test/test_literal/test_duration.py ........ [ 12%] 203s test/test_literal/test_hex_binary.py .. [ 12%] 203s test/test_literal/test_literal.py ...................................... [ 13%] 203s ...................F......F............................................. [ 14%] 203s ........................................................................ [ 15%] 204s .xxxxxxxxxx................ [ 15%] 204s test/test_literal/test_literal_html5lib.py ....... [ 15%] 204s test/test_literal/test_normalized_string.py .... [ 15%] 204s test/test_literal/test_term.py ....... [ 15%] 204s test/test_literal/test_tokendatatype.py ..... [ 15%] 204s test/test_literal/test_uriref_literal_comparison.py .......... [ 15%] 204s test/test_literal/test_xmlliterals.py ...... [ 16%] 204s test/test_misc/test_b64_binary.py . [ 16%] 204s test/test_misc/test_collection.py . [ 16%] 204s test/test_misc/test_conventions.py . [ 16%] 204s test/test_misc/test_events.py . [ 16%] 204s test/test_misc/test_input_source.py .................................... [ 16%] 204s ........................................................................ [ 17%] 204s ........................................................................ [ 18%] 204s ........................... [ 18%] 204s test/test_misc/test_networking_redirect.py ..................... [ 19%] 204s test/test_misc/test_parse_file_guess_format.py .... [ 19%] 204s test/test_misc/test_path_div_future.py . [ 19%] 205s test/test_misc/test_plugins.py .. [ 19%] 205s test/test_misc/test_prefix_types.py . [ 19%] 205s test/test_misc/test_resource.py . [ 19%] 205s test/test_misc/test_security.py ........ [ 19%] 206s test/test_n3.py ................ [ 19%] 207s test/test_namespace/test_definednamespace.py ........................... [ 19%] 207s ........................................................................ [ 20%] 207s ......................................... [ 21%] 208s test/test_namespace/test_definednamespace_creator.py ..... [ 21%] 208s test/test_namespace/test_definednamespace_dir.py . [ 21%] 208s test/test_namespace/test_namespace.py ......x........................... [ 21%] 208s ............ [ 22%] 208s test/test_namespace/test_namespacemanager.py ........................... [ 22%] 208s ...x......... [ 22%] 208s test/test_nt_misc.py ...................... [ 22%] 209s test/test_parsers/test_broken_parse_data_from_jena.py x.xxxxx. [ 22%] 209s test/test_parsers/test_empty_xml_base.py .. [ 22%] 209s test/test_parsers/test_n3parse_of_rdf_lists.py .. [ 22%] 209s test/test_parsers/test_nquads.py ........... [ 23%] 209s test/test_parsers/test_parser.py .... [ 23%] 209s test/test_parsers/test_parser_helpers.py . [ 23%] 209s test/test_parsers/test_parser_hext.py ...... [ 23%] 209s test/test_parsers/test_parser_reads_from_pathlike_object.py . [ 23%] 209s test/test_parsers/test_parser_structure.py . [ 23%] 209s test/test_parsers/test_parser_turtlelike.py ............................ [ 23%] 209s ...........................................................x.x.......... [ 24%] 209s ........................................................................ [ 25%] 209s ........................................ [ 26%] 209s test/test_parsers/test_swap_n3.py .xx.x....x.x.x..x..x.xxxxx... [ 26%] 209s test/test_parsers/test_trix_parse.py ... [ 26%] 209s test/test_path.py ..................... [ 26%] 209s test/test_roundtrip.py ................................................. [ 27%] 209s ................................................................x....... [ 28%] 209s ..x................................................................x.... [ 29%] 210s ........................................................................ [ 30%] 210s ........................................................................ [ 31%] 210s ........................................................................ [ 32%] 210s ........................................................................ [ 33%] 210s ........................................................................ [ 34%] 210s ........................................................................ [ 34%] 210s ........................................................................ [ 35%] 210s ........................................................................ [ 36%] 211s ...........................................................x............ [ 37%] 211s .........xx............................................................. [ 38%] 211s .........................................x.x.x...x...x....x.....x....... [ 39%] 211s ...........................................x............................ [ 40%] 212s ........................................................................ [ 41%] 212s ........................................................................ [ 42%] 212s ..................................................x.........x........... [ 43%] 212s ........................................................................ [ 44%] 212s ........................................................................ [ 45%] 212s ........................................................................ [ 46%] 213s ................................xx.......x.........................x.... [ 47%] 213s ..............x........xx.x............................................. [ 48%] 213s .x................................ [ 48%] 213s test/test_serializers/test_finalnewline.py . [ 48%] 213s test/test_serializers/test_prettyxml.py ....... [ 48%] 214s test/test_serializers/test_serializer.py .................x.x.x.x.x.x.x. [ 49%] 214s x.x.x.x.x........................xxxxxxxxxxxxxxxxxxxxxxxx............... [ 50%] 214s .....................................................................x.x [ 51%] 215s .x.x.x.x.x.x.x.x.x.x.................................................... [ 51%] 215s ....................... [ 52%] 215s test/test_serializers/test_serializer_hext.py ...... [ 52%] 215s test/test_serializers/test_serializer_jsonld.py .. [ 52%] 215s test/test_serializers/test_serializer_longturtle.py . [ 52%] 215s test/test_serializers/test_serializer_n3.py .... [ 52%] 215s test/test_serializers/test_serializer_trix.py .. [ 52%] 215s test/test_serializers/test_serializer_turtle.py ..... [ 52%] 215s test/test_serializers/test_serializer_xml.py ..... [ 52%] 215s test/test_serializers/test_xmlwriter_qname.py ..... [ 52%] 215s test/test_skolem_genid.py . [ 52%] 215s test/test_sparql/test_agg_distinct.py ..... [ 52%] 215s test/test_sparql/test_agg_undef.py ........ [ 52%] 215s test/test_sparql/test_construct_bindings.py . [ 52%] 215s test/test_sparql/test_datetime_processing.py .... [ 52%] 215s test/test_sparql/test_evaluate_bind.py ... [ 52%] 215s test/test_sparql/test_expressions.py ...... [ 53%] 215s test/test_sparql/test_forward_slash_escapes.py .x.x.x [ 53%] 216s test/test_sparql/test_functions.py ..................................... [ 53%] 216s ................................................. [ 54%] 216s test/test_sparql/test_initbindings.py .......................... [ 54%] 216s test/test_sparql/test_operators.py ... [ 54%] 216s test/test_sparql/test_prefixed_name.py ................................. [ 55%] 216s ..................... [ 55%] 216s test/test_sparql/test_prepare.py .. [ 55%] 216s test/test_sparql/test_result.py ........xx........xx......x..xx......... [ 55%] 216s .x...x...x................................ [ 56%] 222s test/test_sparql/test_service.py ............ [ 56%] 222s test/test_sparql/test_sparql.py ...x..........x...x..................... [ 57%] 223s ................ [ 57%] 224s test/test_sparql/test_sparql_parser.py .. [ 57%] 224s test/test_sparql/test_subselect.py .... [ 57%] 224s test/test_sparql/test_translate_algebra.py ............................. [ 57%] 226s ..x.........x. [ 57%] 226s test/test_sparql/test_tsvresults.py . [ 57%] 227s test/test_store/test_namespace_binding.py .............................. [ 58%] 227s .......................................x.x [ 58%] 227s test/test_store/test_nodepickler.py ... [ 58%] 227s test/test_store/test_store.py ... [ 59%] 227s test/test_store/test_store_auditable.py ........................ [ 59%] 227s test/test_store/test_store_berkeleydb.py ssssss [ 59%] 227s test/test_store/test_store_memorystore.py .. [ 59%] 228s test/test_store/test_store_sparqlstore.py ......... [ 59%] 228s test/test_store/test_store_sparqlstore_query.py .... [ 59%] 228s test/test_store/test_store_sparqlstore_sparqlconnector.py .. [ 59%] 228s test/test_store/test_store_sparqlupdatestore_mock.py ... [ 59%] 228s test/test_store/test_store_triple_store.py ... [ 59%] 229s test/test_tools/test_chunk_serializer.py ........... [ 59%] 229s test/test_tools/test_csv2rdf.py .. [ 59%] 229s test/test_trig.py ............ [ 60%] 229s test/test_turtle_quoting.py ............................................ [ 60%] 229s ........................................................................ [ 61%] 229s ........................................................................ [ 62%] 229s ........................................................................ [ 63%] 229s ........................................................................ [ 64%] 229s ........................................................................ [ 65%] 229s ........................................................................ [ 66%] 229s ........................................................................ [ 67%] 229s ........................................................................ [ 68%] 229s ................. [ 68%] 229s test/test_turtle_sort_issue613.py .. [ 68%] 229s test/test_typing.py . [ 68%] 229s test/test_util.py ..............................................xxx..... [ 69%] 229s ............................... [ 69%] 229s test/test_w3c_spec/test_n3_w3c.py ......x...................x........... [ 70%] 229s ...........xxxxxxxxxx........xxxxxxxxxxxxx.............................. [ 70%] 230s .x.x.xx.........xxx..x.x................................................ [ 71%] 230s ..............................................................x......... [ 72%] 230s ................x................. [ 73%] 230s test/test_w3c_spec/test_nquads_w3c.py .................................. [ 73%] 230s ..xxxx.........xxs................................. [ 74%] 230s test/test_w3c_spec/test_nt_w3c.py ...................xxxx.........xxx... [ 74%] 230s .............................x [ 75%] 230s test/test_w3c_spec/test_rdfxml_w3c.py .................................. [ 75%] 230s ........................................................................ [ 76%] 230s ............................................................... [ 77%] 230s test/test_w3c_spec/test_sparql10_w3c.py ..................ss............ [ 77%] 231s ...........Xx..............................x............................ [ 78%] 232s ....................................................x................... [ 79%] 232s ........................................................................ [ 80%] 235s ......................s.........................x......x..x............. [ 81%] 237s .................x............x......................................... [ 82%] 238s ........................x..............xxx...xxxxxxxx... [ 83%] 238s test/test_w3c_spec/test_sparql11_w3c.py ...............x.xxxx........... [ 83%] 239s .x...................................................................... [ 84%] 239s .............................x...x....x...xxxxxxx.xxx.....xxxxx......... [ 85%] 240s ..xx......xxxx..xxxxxxxxxxxxxxxx.....x.x................................ [ 86%] 241s ..............................xx........................................ [ 87%] 241s ...........xsssssss..................................................... [ 88%] 242s .xxx.............xxx..x................................................. [ 89%] 244s .................xx.....xxx.x.................ssssssssssssssssssssssssss [ 90%] 244s sssssssssss [ 90%] 244s test/test_w3c_spec/test_sparql_rdflib.py .........................xxxx [ 90%] 244s test/test_w3c_spec/test_trig_w3c.py ....xxxx............................ [ 91%] 244s ........................................................................ [ 92%] 244s ....x................................................................... [ 93%] 244s ........xxxxx..........xxxx...xx..xx.x.........x.xxxx..xxx........xx.... [ 94%] 245s ..............................xxxx.x.......xxxx......................... [ 95%] 245s ........... [ 95%] 245s test/test_w3c_spec/test_turtle_w3c.py .................................. [ 95%] 245s ...................................................................x.... [ 96%] 245s .......................................................................x [ 97%] 245s xxxx...........xxxx...xx..xx.x.............xxxx..xxx........xx.......... [ 98%] 245s ........................xxxx.x........... [ 99%] 246s test/utils/test/test_httpservermock.py .. [ 99%] 246s test/utils/test/test_iri.py ......... [ 99%] 246s test/utils/test/test_outcome.py ......... [ 99%] 246s test/utils/test/test_result.py ........... [ 99%] 247s test/utils/test/test_testutils.py ................................. [100%] 247s 247s =================================== FAILURES =================================== 247s __ test_literal_addsub[2006-07-01T20:52:00-2006-11-01T12:50:00-bminusa-P123D] __ 247s 247s a = rdflib.term.Literal('2006-07-01T20:52:00', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#date')) 247s b = rdflib.term.Literal('2006-11-01T12:50:00', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#date')) 247s op = 'bminusa' 247s expected_result = rdflib.term.Literal('P123D', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#duration')) 247s 247s @pytest.mark.parametrize( 247s "a, b, op, expected_result", 247s [ 247s pytest.param( 247s Literal("20:00:00", datatype=_XSD_STRING), 247s Literal("23:30:00", datatype=_XSD_STRING), 247s "bminusa", 247s TypeError(r"unsupported operand type\(s\) for -: 'str' and 'str'"), 247s id="Attempt to subtract strings", 247s ), 247s pytest.param( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("23:30:00", datatype=_XSD_STRING), 247s "aplusb", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#string to a Literal of datatype http://www.w3.org/2001/XMLSchema#time" 247s ), 247s id="Attempt to add string to time", 247s ), 247s pytest.param( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("23:30:00", datatype=_XSD_STRING), 247s "bminusa", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#time from a Literal of datatype http://www.w3.org/2001/XMLSchema#string" 247s ), 247s id="Attempt to subtract string from time", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "aplusb", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#integer to a Literal of datatype http://www.w3.org/2001/XMLSchema#time" 247s ), 247s id="Attempt to add integer to time", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "bplusa", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#time to a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to add time to integer", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "aminusb", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#integer from a Literal of datatype http://www.w3.org/2001/XMLSchema#time" 247s ), 247s id="Attempt to subtract integer from time", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "bminusa", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#time from a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to subtract time from integer", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "aplusb", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#duration to a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to add duration to integer", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "bplusa", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#integer to a Literal of datatype http://www.w3.org/2001/XMLSchema#duration" 247s ), 247s id="Attempt to add integer to duration", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "aminusb", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#duration from a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to subtract duration from integer", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "bminusa", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#integer from a Literal of datatype http://www.w3.org/2001/XMLSchema#duration" 247s ), 247s id="Attempt to subtract integer from duration", 247s ), 247s ( 247s Literal("2006-01-01T20:50:00", datatype=_XSD_DATETIME), 247s Literal("2006-02-01T20:50:00", datatype=_XSD_DATETIME), 247s "bminusa", 247s Literal("P31D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-01-02T20:50:00", datatype=_XSD_DATETIME), 247s Literal("2006-05-01T20:50:00", datatype=_XSD_DATETIME), 247s "bminusa", 247s Literal("P119D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATETIME), 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATETIME), 247s "aminusb", 247s Literal("-P122DT15H58M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATETIME), 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATETIME), 247s "bminusa", 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATE), 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATE), 247s "bminusa", 247s Literal("P123D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-08-01", datatype=_XSD_DATE), 247s Literal("2006-11-01", datatype=_XSD_DATE), 247s "bminusa", 247s Literal("P92D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12:50:00", datatype=_XSD_TIME), 247s "bminusa", 247s Literal("-PT8H2M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("23:30:00", datatype=_XSD_TIME), 247s "bminusa", 247s Literal("PT3H30M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-01-01T20:50:00", datatype=_XSD_DATETIME), 247s Literal("P31D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-02-01T20:50:00", datatype=_XSD_DATETIME), 247s ), 247s ( 247s Literal("2006-01-02T20:50:00", datatype=_XSD_DATETIME), 247s Literal("P119D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-05-01T20:50:00", datatype=_XSD_DATETIME), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATETIME), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATETIME), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATE), 247s Literal("P123D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATE), 247s ), 247s ( 247s Literal("2006-08-01", datatype=_XSD_DATE), 247s Literal("P92D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-11-01", datatype=_XSD_DATE), 247s ), 247s ( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("-PT8H2M", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("12:50:00", datatype=_XSD_TIME), 247s ), 247s ( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("PT3H30M", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("23:30:00", datatype=_XSD_TIME), 247s ), 247s ( 247s Literal("3", datatype=_XSD_INTEGER), 247s Literal("5", datatype=_XSD_INTEGER), 247s "aplusb", 247s Literal("8", datatype=_XSD_INTEGER), 247s ), 247s ( 247s Literal("3", datatype=_XSD_INTEGER), 247s Literal("5", datatype=_XSD_INTEGER), 247s "bminusa", 247s Literal("2", datatype=_XSD_INTEGER), 247s ), 247s ( 247s Literal("5.3", datatype=_XSD_FLOAT), 247s Literal("8.5", datatype=_XSD_FLOAT), 247s "bminusa", 247s Literal("3.2", datatype=_XSD_FLOAT), 247s ), 247s ( 247s Literal("5.3", datatype=_XSD_DECIMAL), 247s Literal("8.5", datatype=_XSD_DECIMAL), 247s "bminusa", 247s Literal("3.2", datatype=_XSD_DECIMAL), 247s ), 247s ( 247s Literal("5.3", datatype=_XSD_DOUBLE), 247s Literal("8.5", datatype=_XSD_DOUBLE), 247s "aminusb", 247s Literal("-3.2", datatype=_XSD_DOUBLE), 247s ), 247s ( 247s Literal("8.5", datatype=_XSD_DOUBLE), 247s Literal("5.3", datatype=_XSD_DOUBLE), 247s "aminusb", 247s Literal("3.2", datatype=_XSD_DOUBLE), 247s ), 247s ( 247s Literal(isodate.Duration(hours=1)), 247s Literal(isodate.Duration(hours=1)), 247s "aplusb", 247s Literal(isodate.Duration(hours=2)), 247s ), 247s ( 247s Literal(datetime.timedelta(days=1)), 247s Literal(datetime.timedelta(days=1)), 247s "aplusb", 247s Literal(datetime.timedelta(days=2)), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(isodate.Duration(hours=1)), 247s "aplusb", 247s Literal("05:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(isodate.Duration(days=1)), 247s "aplusb", 247s Literal("2011-11-05", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(isodate.Duration(days=1)), 247s "aplusb", 247s Literal("2011-11-05T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(datetime.timedelta(hours=1)), 247s "aplusb", 247s Literal("05:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(datetime.timedelta(days=1)), 247s "aplusb", 247s Literal("2011-11-05", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(datetime.timedelta(days=1)), 247s "aplusb", 247s Literal("2011-11-05T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(isodate.Duration(hours=1)), 247s "aminusb", 247s Literal("03:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(isodate.Duration(days=1)), 247s "aminusb", 247s Literal("2011-11-03", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(isodate.Duration(days=1)), 247s "aminusb", 247s Literal("2011-11-03T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(datetime.timedelta(hours=1)), 247s "aminusb", 247s Literal("03:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(datetime.timedelta(days=1)), 247s "aminusb", 247s Literal("2011-11-03", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(datetime.timedelta(days=1)), 247s "aminusb", 247s Literal("2011-11-03T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal("5", datatype=XSD.integer), 247s Literal("10", datatype=XSD.integer), 247s "bminusa", 247s Literal("5", datatype=XSD.integer), 247s ), 247s ( 247s Literal("5"), 247s Literal("10", datatype=_XSD_INTEGER), 247s "aminusb", 247s TypeError( 247s "Minuend Literal must have Numeric, Date, Datetime or Time datatype." 247s ), 247s ), 247s ( 247s Literal("5"), 247s Literal("10", datatype=_XSD_INTEGER), 247s "bminusa", 247s TypeError( 247s "Subtrahend Literal must have Numeric, Date, Datetime or Time datatype." 247s ), 247s ), 247s *affix_tuples( 247s ( 247s Literal("5", datatype=_XSD_INTEGER), 247s Literal("10", datatype=_XSD_FLOAT), 247s ), 247s [ 247s ("aminusb", Literal("-5", datatype=_XSD_DECIMAL)), 247s ("aplusb", Literal("15", datatype=_XSD_DECIMAL)), 247s ("bminusa", Literal("5", datatype=_XSD_DECIMAL)), 247s ("bplusa", Literal("15", datatype=_XSD_DECIMAL)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("5", datatype=_XSD_FLOAT), 247s Literal("10", datatype=_XSD_DECIMAL), 247s ), 247s [ 247s ("aminusb", Literal("-5", datatype=_XSD_DECIMAL)), 247s ("aplusb", Literal("15", datatype=_XSD_DECIMAL)), 247s ("bminusa", Literal("5", datatype=_XSD_DECIMAL)), 247s ("bplusa", Literal("15", datatype=_XSD_DECIMAL)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("5", datatype=_XSD_FLOAT), 247s Literal("10", datatype=_XSD_DOUBLE), 247s ), 247s [ 247s ("aminusb", Literal("-5", datatype=_XSD_DECIMAL)), 247s ("aplusb", Literal("15", datatype=_XSD_DECIMAL)), 247s ("bminusa", Literal("5", datatype=_XSD_DECIMAL)), 247s ("bplusa", Literal("15", datatype=_XSD_DECIMAL)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(Decimal("1.2121214312312")), 247s Literal(1), 247s ), 247s [ 247s ("aminusb", Literal(Decimal("0.212121"))), 247s ("aplusb", Literal(Decimal("2.212121"))), 247s ("bminusa", Literal(Decimal("-0.212121"))), 247s ("bplusa", Literal(Decimal("2.212121"))), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("P31D", datatype=_XSD_DURATION), 247s Literal("P5D", datatype=_XSD_DURATION), 247s ), 247s [ 247s ("aplusb", Literal("P36D", datatype=_XSD_DURATION)), 247s ("aminusb", Literal("P26D", datatype=_XSD_DURATION)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("P119D", datatype=_XSD_DURATION), 247s Literal("2006-01-02T20:50:00", datatype=_XSD_DATETIME), 247s ), 247s [ 247s ("aplusb", TypeError(r".*datatype.*")), 247s ("aminusb", TypeError(r".*datatype.*")), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(isodate.Duration(days=4)), 247s Literal(datetime.timedelta(days=1)), 247s ), 247s [ 247s ( 247s "aplusb", 247s TypeError( 247s r"Cannot add a Literal of datatype.*to a Literal of datatype.*" 247s ), 247s ), 247s ( 247s "aminusb", 247s TypeError( 247s r"Cannot subtract a Literal of datatype.*from a Literal of datatype.*" 247s ), 247s ), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(isodate.Duration(days=4)), 247s Literal(isodate.Duration(days=1)), 247s ), 247s [ 247s ("aplusb", Literal(isodate.Duration(days=5))), 247s ("aminusb", Literal(isodate.Duration(days=3))), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(datetime.timedelta(hours=4)), 247s Literal(datetime.timedelta(hours=1)), 247s ), 247s [ 247s ("aplusb", Literal(datetime.timedelta(hours=5))), 247s ("aminusb", Literal(datetime.timedelta(hours=3))), 247s ], 247s None, 247s ), 247s ], 247s ) 247s def test_literal_addsub( 247s a: Literal, 247s b: Literal, 247s op: str, 247s expected_result: OutcomePrimitive[Literal], 247s ) -> None: 247s checker = OutcomeChecker[Literal].from_primitive(expected_result) 247s with checker.context(): 247s if op == "aplusb": 247s result = a + b 247s 247s elif op == "aminusb": 247s result = a - b 247s elif op == "bminusa": 247s > result = b - a 247s 247s test/test_literal/test_literal.py:637: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s rdflib/term.py:940: in __sub__ 247s self.toPython() - val.toPython(), 247s rdflib/term.py:940: in __sub__ 247s self.toPython() - val.toPython(), 247s E RecursionError: maximum recursion depth exceeded 247s !!! Recursion detected (same locals & position) 247s __ test_literal_addsub[2006-07-01T20:52:00-P123D-aplusb-2006-11-01T12:50:00] ___ 247s 247s a = rdflib.term.Literal('2006-07-01T20:52:00', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#date')) 247s b = rdflib.term.Literal('P123D', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#duration')) 247s op = 'aplusb' 247s expected_result = rdflib.term.Literal('2006-11-01T12:50:00', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#date')) 247s 247s @pytest.mark.parametrize( 247s "a, b, op, expected_result", 247s [ 247s pytest.param( 247s Literal("20:00:00", datatype=_XSD_STRING), 247s Literal("23:30:00", datatype=_XSD_STRING), 247s "bminusa", 247s TypeError(r"unsupported operand type\(s\) for -: 'str' and 'str'"), 247s id="Attempt to subtract strings", 247s ), 247s pytest.param( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("23:30:00", datatype=_XSD_STRING), 247s "aplusb", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#string to a Literal of datatype http://www.w3.org/2001/XMLSchema#time" 247s ), 247s id="Attempt to add string to time", 247s ), 247s pytest.param( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("23:30:00", datatype=_XSD_STRING), 247s "bminusa", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#time from a Literal of datatype http://www.w3.org/2001/XMLSchema#string" 247s ), 247s id="Attempt to subtract string from time", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "aplusb", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#integer to a Literal of datatype http://www.w3.org/2001/XMLSchema#time" 247s ), 247s id="Attempt to add integer to time", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "bplusa", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#time to a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to add time to integer", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "aminusb", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#integer from a Literal of datatype http://www.w3.org/2001/XMLSchema#time" 247s ), 247s id="Attempt to subtract integer from time", 247s ), 247s pytest.param( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12", datatype=_XSD_INTEGER), 247s "bminusa", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#time from a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to subtract time from integer", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "aplusb", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#duration to a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to add duration to integer", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "bplusa", 247s TypeError( 247s "Cannot add a Literal of datatype http://www.w3.org/2001/XMLSchema#integer to a Literal of datatype http://www.w3.org/2001/XMLSchema#duration" 247s ), 247s id="Attempt to add integer to duration", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "aminusb", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#duration from a Literal of datatype http://www.w3.org/2001/XMLSchema#integer" 247s ), 247s id="Attempt to subtract duration from integer", 247s ), 247s pytest.param( 247s Literal("12", datatype=_XSD_INTEGER), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "bminusa", 247s TypeError( 247s "Cannot subtract a Literal of datatype http://www.w3.org/2001/XMLSchema#integer from a Literal of datatype http://www.w3.org/2001/XMLSchema#duration" 247s ), 247s id="Attempt to subtract integer from duration", 247s ), 247s ( 247s Literal("2006-01-01T20:50:00", datatype=_XSD_DATETIME), 247s Literal("2006-02-01T20:50:00", datatype=_XSD_DATETIME), 247s "bminusa", 247s Literal("P31D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-01-02T20:50:00", datatype=_XSD_DATETIME), 247s Literal("2006-05-01T20:50:00", datatype=_XSD_DATETIME), 247s "bminusa", 247s Literal("P119D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATETIME), 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATETIME), 247s "aminusb", 247s Literal("-P122DT15H58M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATETIME), 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATETIME), 247s "bminusa", 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATE), 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATE), 247s "bminusa", 247s Literal("P123D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-08-01", datatype=_XSD_DATE), 247s Literal("2006-11-01", datatype=_XSD_DATE), 247s "bminusa", 247s Literal("P92D", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("12:50:00", datatype=_XSD_TIME), 247s "bminusa", 247s Literal("-PT8H2M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("23:30:00", datatype=_XSD_TIME), 247s "bminusa", 247s Literal("PT3H30M", datatype=_XSD_DURATION), 247s ), 247s ( 247s Literal("2006-01-01T20:50:00", datatype=_XSD_DATETIME), 247s Literal("P31D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-02-01T20:50:00", datatype=_XSD_DATETIME), 247s ), 247s ( 247s Literal("2006-01-02T20:50:00", datatype=_XSD_DATETIME), 247s Literal("P119D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-05-01T20:50:00", datatype=_XSD_DATETIME), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATETIME), 247s Literal("P122DT15H58M", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATETIME), 247s ), 247s ( 247s Literal("2006-07-01T20:52:00", datatype=_XSD_DATE), 247s Literal("P123D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-11-01T12:50:00", datatype=_XSD_DATE), 247s ), 247s ( 247s Literal("2006-08-01", datatype=_XSD_DATE), 247s Literal("P92D", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("2006-11-01", datatype=_XSD_DATE), 247s ), 247s ( 247s Literal("20:52:00", datatype=_XSD_TIME), 247s Literal("-PT8H2M", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("12:50:00", datatype=_XSD_TIME), 247s ), 247s ( 247s Literal("20:00:00", datatype=_XSD_TIME), 247s Literal("PT3H30M", datatype=_XSD_DURATION), 247s "aplusb", 247s Literal("23:30:00", datatype=_XSD_TIME), 247s ), 247s ( 247s Literal("3", datatype=_XSD_INTEGER), 247s Literal("5", datatype=_XSD_INTEGER), 247s "aplusb", 247s Literal("8", datatype=_XSD_INTEGER), 247s ), 247s ( 247s Literal("3", datatype=_XSD_INTEGER), 247s Literal("5", datatype=_XSD_INTEGER), 247s "bminusa", 247s Literal("2", datatype=_XSD_INTEGER), 247s ), 247s ( 247s Literal("5.3", datatype=_XSD_FLOAT), 247s Literal("8.5", datatype=_XSD_FLOAT), 247s "bminusa", 247s Literal("3.2", datatype=_XSD_FLOAT), 247s ), 247s ( 247s Literal("5.3", datatype=_XSD_DECIMAL), 247s Literal("8.5", datatype=_XSD_DECIMAL), 247s "bminusa", 247s Literal("3.2", datatype=_XSD_DECIMAL), 247s ), 247s ( 247s Literal("5.3", datatype=_XSD_DOUBLE), 247s Literal("8.5", datatype=_XSD_DOUBLE), 247s "aminusb", 247s Literal("-3.2", datatype=_XSD_DOUBLE), 247s ), 247s ( 247s Literal("8.5", datatype=_XSD_DOUBLE), 247s Literal("5.3", datatype=_XSD_DOUBLE), 247s "aminusb", 247s Literal("3.2", datatype=_XSD_DOUBLE), 247s ), 247s ( 247s Literal(isodate.Duration(hours=1)), 247s Literal(isodate.Duration(hours=1)), 247s "aplusb", 247s Literal(isodate.Duration(hours=2)), 247s ), 247s ( 247s Literal(datetime.timedelta(days=1)), 247s Literal(datetime.timedelta(days=1)), 247s "aplusb", 247s Literal(datetime.timedelta(days=2)), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(isodate.Duration(hours=1)), 247s "aplusb", 247s Literal("05:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(isodate.Duration(days=1)), 247s "aplusb", 247s Literal("2011-11-05", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(isodate.Duration(days=1)), 247s "aplusb", 247s Literal("2011-11-05T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(datetime.timedelta(hours=1)), 247s "aplusb", 247s Literal("05:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(datetime.timedelta(days=1)), 247s "aplusb", 247s Literal("2011-11-05", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(datetime.timedelta(days=1)), 247s "aplusb", 247s Literal("2011-11-05T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(isodate.Duration(hours=1)), 247s "aminusb", 247s Literal("03:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(isodate.Duration(days=1)), 247s "aminusb", 247s Literal("2011-11-03", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(isodate.Duration(days=1)), 247s "aminusb", 247s Literal("2011-11-03T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal(datetime.time.fromisoformat("04:23:01.000384")), 247s Literal(datetime.timedelta(hours=1)), 247s "aminusb", 247s Literal("03:23:01.000384", datatype=XSD.time), 247s ), 247s ( 247s Literal(datetime.date.fromisoformat("2011-11-04")), 247s Literal(datetime.timedelta(days=1)), 247s "aminusb", 247s Literal("2011-11-03", datatype=XSD.date), 247s ), 247s ( 247s Literal(datetime.datetime.fromisoformat("2011-11-04 00:05:23.283+00:00")), 247s Literal(datetime.timedelta(days=1)), 247s "aminusb", 247s Literal("2011-11-03T00:05:23.283000+00:00", datatype=XSD.dateTime), 247s ), 247s ( 247s Literal("5", datatype=XSD.integer), 247s Literal("10", datatype=XSD.integer), 247s "bminusa", 247s Literal("5", datatype=XSD.integer), 247s ), 247s ( 247s Literal("5"), 247s Literal("10", datatype=_XSD_INTEGER), 247s "aminusb", 247s TypeError( 247s "Minuend Literal must have Numeric, Date, Datetime or Time datatype." 247s ), 247s ), 247s ( 247s Literal("5"), 247s Literal("10", datatype=_XSD_INTEGER), 247s "bminusa", 247s TypeError( 247s "Subtrahend Literal must have Numeric, Date, Datetime or Time datatype." 247s ), 247s ), 247s *affix_tuples( 247s ( 247s Literal("5", datatype=_XSD_INTEGER), 247s Literal("10", datatype=_XSD_FLOAT), 247s ), 247s [ 247s ("aminusb", Literal("-5", datatype=_XSD_DECIMAL)), 247s ("aplusb", Literal("15", datatype=_XSD_DECIMAL)), 247s ("bminusa", Literal("5", datatype=_XSD_DECIMAL)), 247s ("bplusa", Literal("15", datatype=_XSD_DECIMAL)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("5", datatype=_XSD_FLOAT), 247s Literal("10", datatype=_XSD_DECIMAL), 247s ), 247s [ 247s ("aminusb", Literal("-5", datatype=_XSD_DECIMAL)), 247s ("aplusb", Literal("15", datatype=_XSD_DECIMAL)), 247s ("bminusa", Literal("5", datatype=_XSD_DECIMAL)), 247s ("bplusa", Literal("15", datatype=_XSD_DECIMAL)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("5", datatype=_XSD_FLOAT), 247s Literal("10", datatype=_XSD_DOUBLE), 247s ), 247s [ 247s ("aminusb", Literal("-5", datatype=_XSD_DECIMAL)), 247s ("aplusb", Literal("15", datatype=_XSD_DECIMAL)), 247s ("bminusa", Literal("5", datatype=_XSD_DECIMAL)), 247s ("bplusa", Literal("15", datatype=_XSD_DECIMAL)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(Decimal("1.2121214312312")), 247s Literal(1), 247s ), 247s [ 247s ("aminusb", Literal(Decimal("0.212121"))), 247s ("aplusb", Literal(Decimal("2.212121"))), 247s ("bminusa", Literal(Decimal("-0.212121"))), 247s ("bplusa", Literal(Decimal("2.212121"))), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("P31D", datatype=_XSD_DURATION), 247s Literal("P5D", datatype=_XSD_DURATION), 247s ), 247s [ 247s ("aplusb", Literal("P36D", datatype=_XSD_DURATION)), 247s ("aminusb", Literal("P26D", datatype=_XSD_DURATION)), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal("P119D", datatype=_XSD_DURATION), 247s Literal("2006-01-02T20:50:00", datatype=_XSD_DATETIME), 247s ), 247s [ 247s ("aplusb", TypeError(r".*datatype.*")), 247s ("aminusb", TypeError(r".*datatype.*")), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(isodate.Duration(days=4)), 247s Literal(datetime.timedelta(days=1)), 247s ), 247s [ 247s ( 247s "aplusb", 247s TypeError( 247s r"Cannot add a Literal of datatype.*to a Literal of datatype.*" 247s ), 247s ), 247s ( 247s "aminusb", 247s TypeError( 247s r"Cannot subtract a Literal of datatype.*from a Literal of datatype.*" 247s ), 247s ), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(isodate.Duration(days=4)), 247s Literal(isodate.Duration(days=1)), 247s ), 247s [ 247s ("aplusb", Literal(isodate.Duration(days=5))), 247s ("aminusb", Literal(isodate.Duration(days=3))), 247s ], 247s None, 247s ), 247s *affix_tuples( 247s ( 247s Literal(datetime.timedelta(hours=4)), 247s Literal(datetime.timedelta(hours=1)), 247s ), 247s [ 247s ("aplusb", Literal(datetime.timedelta(hours=5))), 247s ("aminusb", Literal(datetime.timedelta(hours=3))), 247s ], 247s None, 247s ), 247s ], 247s ) 247s def test_literal_addsub( 247s a: Literal, 247s b: Literal, 247s op: str, 247s expected_result: OutcomePrimitive[Literal], 247s ) -> None: 247s checker = OutcomeChecker[Literal].from_primitive(expected_result) 247s with checker.context(): 247s if op == "aplusb": 247s > result = a + b 247s 247s test/test_literal/test_literal.py:632: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s rdflib/term.py:797: in __add__ 247s difference = date1 + duration 247s rdflib/term.py:797: in __add__ 247s difference = date1 + duration 247s rdflib/term.py:797: in __add__ 247s difference = date1 + duration 247s E RecursionError: maximum recursion depth exceeded while calling a Python object 247s !!! Recursion detected (same locals & position) 247s =============================== warnings summary =============================== 247s test/test_issues/test_issue200.py::TestRandomSeedInFork::test_bnode_id_differs_in_fork 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/test/test_issues/test_issue200.py:22: DeprecationWarning: This process (pid=2478) is multi-threaded, use of fork() may lead to deadlocks in the child. 247s pid = os.fork() 247s 247s test/test_literal/test_literal.py::test_ill_typed_literals[yes-http://www.w3.org/2001/XMLSchema#boolean-True] 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/term.py:1719: UserWarning: Parsing weird boolean, 'yes' does not map to True or False 247s warnings.warn( 247s 247s test/test_namespace/test_definednamespace.py::test_inspect[DFNSDefaults] 247s /usr/lib/python3.12/inspect.py:2563: UserWarning: Code: _partialmethod is not defined in namespace DFNSDefaults 247s partialmethod = obj._partialmethod 247s 247s test/test_namespace/test_definednamespace.py::test_inspect[DFNSWarnNoFail] 247s /usr/lib/python3.12/inspect.py:2563: UserWarning: Code: _partialmethod is not defined in namespace DFNSWarnNoFail 247s partialmethod = obj._partialmethod 247s 247s test/test_namespace/test_definednamespace.py::test_inspect[DFNSDefaultsEmpty] 247s /usr/lib/python3.12/inspect.py:2563: UserWarning: Code: _partialmethod is not defined in namespace DFNSDefaultsEmpty 247s partialmethod = obj._partialmethod 247s 247s test/test_namespace/test_namespace.py::TestNamespacePrefix::test_closed_namespace 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/test/test_namespace/test_namespace.py:228: UserWarning: DefinedNamespace does not address deprecated properties 247s warn("DefinedNamespace does not address deprecated properties") 247s 247s test/test_parsers/test_n3parse_of_rdf_lists.py::TestOWLCollectionTest::test_collection_rdfxml 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/plugins/serializers/rdfxml.py:280: UserWarning: Assertions on rdflib.term.BNode('Nabb8d83fd28949d2bfc62d54cbe16b23') other than RDF.first and RDF.rest are ignored ... including RDF.List 247s self.predicate(predicate, object, depth + 1) 247s 247s test/test_roundtrip.py: 12 warnings 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/term.py:1585: UserWarning: Serializing weird numerical rdflib.term.Literal('xy.z', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#double')) 247s warnings.warn("Serializing weird numerical %r" % self) 247s 247s test/test_roundtrip.py: 12 warnings 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/term.py:1585: UserWarning: Serializing weird numerical rdflib.term.Literal('+1.0z', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#double')) 247s warnings.warn("Serializing weird numerical %r" % self) 247s 247s test/test_roundtrip.py: 12 warnings 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/term.py:1585: UserWarning: Serializing weird numerical rdflib.term.Literal('ab.c', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#double')) 247s warnings.warn("Serializing weird numerical %r" % self) 247s 247s test/test_serializers/test_serializer.py: 10 warnings 247s test/test_tools/test_chunk_serializer.py: 4 warnings 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/plugins/serializers/nt.py:40: UserWarning: NTSerializer always uses UTF-8 encoding. Given encoding was: None 247s warnings.warn( 247s 247s test/test_util.py::TestUtilTermConvert::test_util_from_n3_expectliteralandlangdtype 247s /usr/lib/python3/dist-packages/_pytest/python.py:159: UserWarning: Code: fr is not defined in namespace XSD 247s result = testfunction(**testargs) 247s 247s test/test_util.py::TestUtilTermConvert::test_util_from_n3_not_escapes[\\I] 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/util.py:213: DeprecationWarning: invalid escape sequence '\I' 247s value = value.encode("raw-unicode-escape").decode("unicode-escape") 247s 247s test/test_w3c_spec/test_sparql10_w3c.py: 10 warnings 247s test/test_w3c_spec/test_sparql11_w3c.py: 53 warnings 247s /tmp/autopkgtest.ljHRfb/build.gJw/src/rdflib/term.py:1161: DeprecationWarning: NotImplemented should not be used in a boolean context 247s return not self.__gt__(other) and not self.eq(other) 247s 247s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 247s =========================== short test summary info ============================ 247s FAILED test/test_literal/test_literal.py::test_literal_addsub[2006-07-01T20:52:00-2006-11-01T12:50:00-bminusa-P123D] 247s FAILED test/test_literal/test_literal.py::test_literal_addsub[2006-07-01T20:52:00-P123D-aplusb-2006-11-01T12:50:00] 247s = 2 failed, 7199 passed, 58 skipped, 1 deselected, 369 xfailed, 1 xpassed, 122 warnings in 64.96s (0:01:04) = 248s autopkgtest [14:56:21]: test python3: -----------------------] 248s python3 FAIL non-zero exit status 1 248s autopkgtest [14:56:21]: test python3: - - - - - - - - - - results - - - - - - - - - - 248s autopkgtest [14:56:21]: @@@@@@@@@@@@@@@@@@@@ summary 248s python3 FAIL non-zero exit status 1 260s nova [W] Using flock in prodstack6-s390x 260s flock: timeout while waiting to get lock 260s Creating nova instance adt-plucky-s390x-rdflib-20241109-145213-juju-7f2275-prod-proposed-migration-environment-15-87684b51-3d0b-4475-bab8-e47c9056d7b0 from image adt/ubuntu-plucky-s390x-server-20241109.img (UUID 3dcdd533-c66f-4d57-9732-52a74843bc00)...