Skip to content

Instantly share code, notes, and snippets.

@jun66j5
Created October 21, 2019 06:18
Show Gist options
  • Save jun66j5/919538c62f0ab731a95fb5457d190bbd to your computer and use it in GitHub Desktop.
Save jun66j5/919538c62f0ab731a95fb5457d190bbd to your computer and use it in GitHub Desktop.
check-swig-py (swig-py3@1868674, python 3.7.4)
if [ "LD_LIBRARY_PATH" = "DYLD_LIBRARY_PATH" ]; then for d in /home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn_swig_py /home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/../../../libsvn_*; do if [ -n "$DYLD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$d/.libs"; else LD_LIBRARY_PATH="$d/.libs"; fi; done; export LD_LIBRARY_PATH; fi; \
cd /home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python; \
/usr/bin/python3.7 /home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/run_all.py
...............F..............EEFEEE.E.EE..FEF.........E..EE..FFEF....FF..FE...EE.E..FF.E......EF.E.......FFE/usr/lib/python3.7/unittest/case.py:656: ResourceWarning: unclosed file <_io.BufferedReader name='/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/trac/versioncontrol/tests/svnrepos.dump'>
outcome.errors.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
E...................................F.......
======================================================================
ERROR: test_get_commit_log3_callback_accept_unicode (client.SubversionClientTestCase)
Test svn_client_get_commit_log3_t callback wrapper accept unicode as return value
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 221, in test_get_commit_log3_callback_accept_unicode
directory = urljoin(self.repos_uri+b"/", b"dir1")
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_get_commit_log3_callback_unicode_error (client.SubversionClientTestCase)
Test svn_client_get_commit_log3_t callback wrapper handles UnicodeEncodeError correctly
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 233, in test_get_commit_log3_callback_unicode_error
directory = urljoin(self.repos_uri+b"/", b"dir1")
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_info_file (client.SubversionClientTestCase)
Test svn_client_info on working copy file and remote files.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 367, in test_info_file
readme_path = b'%s/trunk/README.txt' % wc_path
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
======================================================================
ERROR: test_inherited_props (client.SubversionClientTestCase)
Test inherited props
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 478, in test_inherited_props
trunk_url = self.repos_uri + b'/trunk'
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_log3_url (client.SubversionClientTestCase)
Test svn_client_log3 on a file:// URL
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 246, in test_log3_url
directory = urljoin(self.repos_uri+b"/", b"trunk/dir1")
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_log5_revprops (client.SubversionClientTestCase)
Test svn_client_log5 revprops (for typemap(in) apr_array_t *STRINGLIST)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 283, in test_log5_revprops
directory = urljoin(self.repos_uri+b"/", b"trunk/dir1")
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_mkdir_url (client.SubversionClientTestCase)
Test svn_client_mkdir2 on a file:// URL
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 204, in test_mkdir_url
directory = urljoin(self.repos_uri+b"/", b"dir1")
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_mkdir_url_with_revprops (client.SubversionClientTestCase)
Test svn_client_mkdir3 on a file:// URL, with added revprops
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 212, in test_mkdir_url_with_revprops
directory = urljoin(self.repos_uri+b"/", b"some/deep/subdir")
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_update4 (client.SubversionClientTestCase)
Test update and the notify function callbacks
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 536, in test_update4
os.path.join(path, b'branches'),
File "/usr/lib/python3.7/posixpath.py", line 94, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.7/genericpath.py", line 151, in _check_arg_types
raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
======================================================================
ERROR: test_object_hash_struct_members (pool.PoolTestCase)
Check that struct members which are hashes of objects work correctly
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/pool.py", line 65, in test_object_hash_struct_members
self.assertEqual(client_ctx.config[category]._parent_pool,
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn/client.py", line 1096, in __getattribute__
return fn(name, value)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn/client.py", line 1048, in _retrieve_swig_value
_copy_metadata_deep(value, members[name])
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn/client.py", line 101, in _copy_metadata_deep
_copy_metadata_deep(value[k], old_value[k])
KeyError: b'servers'
======================================================================
ERROR: test_diff_repos_paths_external (fs.SubversionFSTestCase)
Test diffing of a repository path using an external diff (if available).
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/fs.py", line 76, in setUp
urljoin(self.repos_uri + b"/",b"trunk/UniTest.txt"),
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_diff_repos_paths_internal (fs.SubversionFSTestCase)
Test diffing of a repository path using the internal diff.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/fs.py", line 76, in setUp
urljoin(self.repos_uri + b"/",b"trunk/UniTest.txt"),
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_do_diff2 (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 249, in test_do_diff2
ra.reparent(self.ra_ctx, self.repos_uri+b"/trunk")
TypeError: can only concatenate str (not "bytes") to str
======================================================================
ERROR: test_namestring (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 415, in test_namestring
if uri.startswith(b'http') or uri.startswith(b'svn'):
TypeError: startswith first arg must be str or a tuple of str, not bytes
======================================================================
ERROR: test_commit (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 248, in test_commit
readme_path = b'%s/trunk/README.txt' % self.path
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
======================================================================
ERROR: test_crawl_revisions2 (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 125, in test_crawl_revisions2
readme_path = b'%s/trunk/README.txt' % self.path
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
======================================================================
ERROR: test_diff_editor4 (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 316, in test_diff_editor4
readme_path = b'%s/trunk/README.txt' % self.path
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
======================================================================
ERROR: test_get_pristine_copy_path (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 228, in test_get_pristine_copy_path
path_to_file = b'%s/trunk/README.txt' % self.path
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
======================================================================
ERROR: test_lock (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 59, in test_lock
readme_path = b'%s/trunk/README.txt' % self.path
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
======================================================================
ERROR: test_status_editor (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 180, in test_status_editor
self.assertTrue(target.startswith(self.path))
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
======================================================================
ERROR: test_parse_fns3 (repository.SubversionRepositoryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/repository.py", line 183, in test_parse_fns3
repos.parse_dumpstream3(stream, ptr, baton, False, is_cancelled)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn/repos.py", line 1451, in svn_repos_parse_dumpstream3
return _repos.svn_repos_parse_dumpstream3(*args)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/repository.py", line 51, in new_revision_record
rev = int(headers[repos.DUMPFILE_REVISION_NUMBER])
KeyError: 'Revision-number'
======================================================================
ERROR: test_parse_fns3_invalid_set_fulltext (repository.SubversionRepositoryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/repository.py", line 240, in test_parse_fns3_invalid_set_fulltext
stream, ptr, baton, False, None)
File "/usr/lib/python3.7/unittest/case.py", line 756, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "/usr/lib/python3.7/unittest/case.py", line 178, in handle
callable_obj(*args, **kwargs)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn/repos.py", line 1451, in svn_repos_parse_dumpstream3
return _repos.svn_repos_parse_dumpstream3(*args)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/repository.py", line 51, in new_revision_record
rev = int(headers[repos.DUMPFILE_REVISION_NUMBER])
KeyError: 'Revision-number'
======================================================================
FAIL: test_checksum (checksum.ChecksumTestCases)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/checksum.py", line 33, in test_checksum
"Type of digest not string")
AssertionError: False is not true : Type of digest not string
======================================================================
FAIL: test_info (client.SubversionClientTestCase)
Test svn_client_info on an empty repository
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 197, in test_info
self.assertEqual(self.path, os.path.basename(self.repos_path))
AssertionError: b'tmpyh8pyz5b-client' != 'tmpyh8pyz5b-client'
======================================================================
FAIL: test_shelf (client.SubversionClientTestCase)
Test shelf api.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 645, in test_shelf
self.assertIn(new_subpath, statused_paths)
AssertionError: 'trunk/new-shelf-test.txt' not found in [b'trunk/new-shelf-test.txt', b'trunk/new-shelf-test.txt', None]
======================================================================
FAIL: test_url_from_path (client.SubversionClientTestCase)
Test svn_client_url_from_path for a file:// URL
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/client.py", line 316, in test_url_from_path
self.assertEqual(client.url_from_path(self.repos_uri), self.repos_uri)
AssertionError: b'file:///tmp/tmpr2n_eo29-client' != 'file:///tmp/tmpr2n_eo29-client'
======================================================================
FAIL: test_commit3 (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 119, in test_commit3
self.assertEqual(ra.rev_proplist(self.ra_ctx, info.revision), revprops)
AssertionError: {b'svn:date': b'2019-10-21T06:15:09.269362Z', b'[53 chars] b''} != {b'svn:log': b'foobar', b'testprop': b'', b'svn:[51 chars]62Z'}
- {b'svn:author': b'',
? -
+ {b'svn:author': '',
- b'svn:date': b'2019-10-21T06:15:09.269362Z',
? -
+ b'svn:date': '2019-10-21T06:15:09.269362Z',
b'svn:log': b'foobar',
b'testprop': b''}
======================================================================
FAIL: test_delta_driver_commit (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 204, in test_delta_driver_commit
self.assertEqual(ra.rev_proplist(self.ra_ctx, info.revision), revprops)
AssertionError: {b'svn:date': b'2019-10-21T06:15:09.302828Z', b'[53 chars] b''} != {b'svn:log': b'foobar', b'testprop': b'', b'svn:[51 chars]28Z'}
- {b'svn:author': b'',
? -
+ {b'svn:author': '',
- b'svn:date': b'2019-10-21T06:15:09.302828Z',
? -
+ b'svn:date': '2019-10-21T06:15:09.302828Z',
b'svn:log': b'foobar',
b'testprop': b''}
======================================================================
FAIL: test_get_dir2 (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 89, in test_get_dir2
self.assertTrue(core.SVN_PROP_ENTRY_UUID in props)
AssertionError: False is not true
======================================================================
FAIL: test_get_log2 (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 346, in test_get_log2
self.test_commit3()
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 119, in test_commit3
self.assertEqual(ra.rev_proplist(self.ra_ctx, info.revision), revprops)
AssertionError: {b'svn:date': b'2019-10-21T06:15:09.507168Z', b'[53 chars] b''} != {b'svn:log': b'foobar', b'testprop': b'', b'svn:[51 chars]68Z'}
- {b'svn:author': b'',
? -
+ {b'svn:author': '',
- b'svn:date': b'2019-10-21T06:15:09.507168Z',
? -
+ b'svn:date': '2019-10-21T06:15:09.507168Z',
b'svn:log': b'foobar',
b'testprop': b''}
======================================================================
FAIL: test_get_repos_root (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 69, in test_get_repos_root
self.assertEqual(root,self.repos_uri)
AssertionError: b'file:///tmp/tmpb9hw3b7a-ra' != 'file:///tmp/tmpb9hw3b7a-ra'
======================================================================
FAIL: test_lock (ra.SubversionRepositoryAccessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 318, in test_lock
ra.lock(self.ra_ctx, {b"trunk/README2.txt":rev}, b"sleutel", False, callback)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn/ra.py", line 1084, in svn_ra_lock
return _ra.svn_ra_lock(*args)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/ra.py", line 304, in callback
self.assertEqual(lock.owner, b"jrandom")
AssertionError: 'jrandom' != b'jrandom'
======================================================================
FAIL: test_get_adm_dir (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 80, in test_get_adm_dir
self.assertTrue(isinstance(wc.get_adm_dir(), bytes))
AssertionError: False is not true
======================================================================
FAIL: test_get_ancestry (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 154, in test_get_ancestry
wc.get_ancestry(self.path, self.wc))
AssertionError: Lists differ: ['file:///tmp/tmppuj5t6f1-wc-repo', 12] != [b'file:///tmp/tmppuj5t6f1-wc-repo', 12]
First differing element 0:
'file:///tmp/tmppuj5t6f1-wc-repo'
b'file:///tmp/tmppuj5t6f1-wc-repo'
- ['file:///tmp/tmppuj5t6f1-wc-repo', 12]
+ [b'file:///tmp/tmppuj5t6f1-wc-repo', 12]
? +
======================================================================
FAIL: test_set_adm_dir (wc.SubversionWorkingCopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/wc.py", line 89, in test_set_adm_dir
self.assertEqual(b"_svn", wc.get_adm_dir())
AssertionError: b'_svn' != '_svn'
======================================================================
FAIL: test_get_logs (repository.SubversionRepositoryTestCase)
Test scope of get_logs callbacks
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/repository.py", line 260, in test_get_logs
self.assertEqual(logs[2][b"/tags/v1.1"].action, b"A")
AssertionError: 'A' != b'A'
======================================================================
FAIL: test_lock_unlock (repository.SubversionRepositoryTestCase)
Basic lock/unlock
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/repository.py", line 373, in test_lock_unlock
None, False, 0, False, lock_callback)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/libsvn/fs.py", line 1232, in svn_fs_lock_many
return _fs.svn_fs_lock_many(*args)
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/repository.py", line 362, in lock_callback
self.assertEqual(lock.owner, b'jrandom')
AssertionError: 'jrandom' != b'jrandom'
======================================================================
FAIL: test_char_ptr_in (typemap.SubversionTypemapTestCase)
Check %typemap(in) IN_STRING works correctly
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jun66j5/src/subversion/swig-py3/subversion/bindings/swig/python/tests/typemap.py", line 32, in test_char_ptr_in
self.assertEqual(svn.core.svn_path_canonicalize(b'foo'), b'foo')
AssertionError: 'foo' != b'foo'
----------------------------------------------------------------------
Ran 153 tests in 3.508s
FAILED (failures=16, errors=22)
Makefile:942: recipe for target 'check-swig-py' failed
make: *** [check-swig-py] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment