Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scanner.tests.test_backend::test_backend_large_payload_exc
Failed

TEST RESULT

Run At
Dec 11 2020, 12:48 PM
Details
tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_backend_large_payload_exc0') live_server = <LiveServer listening at http://localhost:6600> test_swhids_sample = <_io.TextIOWrapper name='/tmp/pytest-of-jenkins/pytest-0/test_backend_large_payload_exc0/swhids_sample.txt' mode='r' encoding='UTF-8'> def test_backend_large_payload_exc(tmp_path, live_server, test_swhids_sample): tmp_dbfile = tmp_path / "tmp_db.sqlite" swhid = "swh:1:cnt:fa8eacf43d8646129ae8adfa1648f9307d999999" # the backend supports up to 1000 SWHID requests swhids = [swhid for n in range(1001)] db = Db(tmp_dbfile) cur = db.conn.cursor() db.create_from(test_swhids_sample, LIMIT, cur) > app = create_app(db) .tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_backend.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/scanner/backend.py:20: in create_app db = Db(Path(db_file)) /usr/lib/python3.7/pathlib.py:1003: in __new__ self = cls._from_parts(args, init=False) /usr/lib/python3.7/pathlib.py:658: in _from_parts drv, root, parts = self._parse_args(args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <class 'pathlib.PosixPath'> args = (<swh.scanner.db.Db object at 0x7f2d68b70668>,) @classmethod def _parse_args(cls, args): # This is useful when you don't want to create an instance, just # canonicalize some constructor arguments. parts = [] for a in args: if isinstance(a, PurePath): parts += a._parts else: > a = os.fspath(a) E TypeError: expected str, bytes or os.PathLike object, not Db /usr/lib/python3.7/pathlib.py:642: TypeError