Advertisement
Guest User

dupeguru-git makepkg error log

a guest
Sep 2nd, 2021
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.29 KB | None | 0 0
  1. ======================================= FAILURES =======================================
  2. __________________________ TestCaseMoveCopy.test_copy_folder ___________________________
  3.  
  4. src = '/tmp/pytest-of-adam/pytest-1/test_copy_folder0/foo'
  5. dst = '/tmp/pytest-of-adam/pytest-1/test_copy_folder0/[000] bar'
  6.  
  7.     def copyfile(src, dst, *, follow_symlinks=True):
  8.         """Copy data from src to dst in the most efficient way possible.
  9.    
  10.        If follow_symlinks is not set and src is a symbolic link, a new
  11.        symlink will be created instead of copying the file it points to.
  12.    
  13.        """
  14.         sys.audit("shutil.copyfile", src, dst)
  15.    
  16.         if _samefile(src, dst):
  17.             raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
  18.    
  19.         file_size = 0
  20.         for i, fn in enumerate([src, dst]):
  21.             try:
  22.                 st = _stat(fn)
  23.             except OSError:
  24.                 # File most likely does not exist
  25.                 pass
  26.             else:
  27.                 # XXX What about other special files? (sockets, devices...)
  28.                 if stat.S_ISFIFO(st.st_mode):
  29.                     fn = fn.path if isinstance(fn, os.DirEntry) else fn
  30.                     raise SpecialFileError("`%s` is a named pipe" % fn)
  31.                 if _WINDOWS and i == 0:
  32.                     file_size = st.st_size
  33.    
  34.         if not follow_symlinks and _islink(src):
  35.             os.symlink(os.readlink(src), dst)
  36.         else:
  37.             try:
  38. >               with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
  39. E               IsADirectoryError: [Errno 21] Is a directory: '/tmp/pytest-of-adam/pytest-1/test_copy_folder0/foo'
  40.  
  41. /usr/lib/python3.9/shutil.py:265: IsADirectoryError
  42.  
  43. The above exception was the direct cause of the following exception:
  44.  
  45. self = <hscommon.tests.conflict_test.TestCaseMoveCopy object at 0x7f6b5de86550>
  46. tmpdir = local('/tmp/pytest-of-adam/pytest-1/test_copy_folder0')
  47.  
  48.     def test_copy_folder(self, tmpdir):
  49.         # smart_copy also works on folders
  50.         path = Path(str(tmpdir))
  51.         path["foo"].mkdir()
  52.         path["bar"].mkdir()
  53. >       smart_copy(path["foo"], path["bar"])  # no crash
  54.  
  55. hscommon/tests/conflict_test.py:112:
  56. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  57. hscommon/conflict.py:76: in smart_copy
  58.     _smart_move_or_copy(shutil.copy, source_path, dest_path)
  59. hscommon/path.py:237: in wrapped
  60.     return f(*args, **kwargs)
  61. hscommon/conflict.py:65: in _smart_move_or_copy
  62.     operation(str(source_path), str(dest_path))
  63. /usr/lib/python3.9/shutil.py:426: in copy
  64.     copyfile(src, dst, follow_symlinks=follow_symlinks)
  65. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  66.  
  67. src = '/tmp/pytest-of-adam/pytest-1/test_copy_folder0/foo'
  68. dst = '/tmp/pytest-of-adam/pytest-1/test_copy_folder0/[000] bar'
  69.  
  70.     def copyfile(src, dst, *, follow_symlinks=True):
  71.         """Copy data from src to dst in the most efficient way possible.
  72.    
  73.        If follow_symlinks is not set and src is a symbolic link, a new
  74.        symlink will be created instead of copying the file it points to.
  75.    
  76.        """
  77.         sys.audit("shutil.copyfile", src, dst)
  78.    
  79.         if _samefile(src, dst):
  80.             raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
  81.    
  82.         file_size = 0
  83.         for i, fn in enumerate([src, dst]):
  84.             try:
  85.                 st = _stat(fn)
  86.             except OSError:
  87.                 # File most likely does not exist
  88.                 pass
  89.             else:
  90.                 # XXX What about other special files? (sockets, devices...)
  91.                 if stat.S_ISFIFO(st.st_mode):
  92.                     fn = fn.path if isinstance(fn, os.DirEntry) else fn
  93.                     raise SpecialFileError("`%s` is a named pipe" % fn)
  94.                 if _WINDOWS and i == 0:
  95.                     file_size = st.st_size
  96.    
  97.         if not follow_symlinks and _islink(src):
  98.             os.symlink(os.readlink(src), dst)
  99.         else:
  100.             try:
  101.                 with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
  102.                     # macOS
  103.                     if _HAS_FCOPYFILE:
  104.                         try:
  105.                             _fastcopy_fcopyfile(fsrc, fdst, posix._COPYFILE_DATA)
  106.                             return dst
  107.                         except _GiveupOnFastCopy:
  108.                             pass
  109.                     # Linux
  110.                     elif _USE_CP_SENDFILE:
  111.                         try:
  112.                             _fastcopy_sendfile(fsrc, fdst)
  113.                             return dst
  114.                         except _GiveupOnFastCopy:
  115.                             pass
  116.                     # Windows, see:
  117.                     # https://github.com/python/cpython/pull/7160#discussion_r195405230
  118.                     elif _WINDOWS and file_size > 0:
  119.                         _copyfileobj_readinto(fsrc, fdst, min(file_size, COPY_BUFSIZE))
  120.                         return dst
  121.    
  122.                     copyfileobj(fsrc, fdst)
  123.    
  124.             # Issue 43219, raise a less confusing exception
  125.             except IsADirectoryError as e:
  126.                 if os.path.exists(dst):
  127.                     raise
  128.                 else:
  129. >                   raise FileNotFoundError(f'Directory does not exist: {dst}') from e
  130. E                   FileNotFoundError: Directory does not exist: /tmp/pytest-of-adam/pytest-1/test_copy_folder0/[000] bar
  131.  
  132. /usr/lib/python3.9/shutil.py:293: FileNotFoundError
  133. =============================== short test summary info ================================
  134. FAILED hscommon/tests/conflict_test.py::TestCaseMoveCopy::test_copy_folder - FileNotF...
  135. ======================= 1 failed, 565 passed, 1 xfailed in 3.90s =======================
  136. ERROR: InvocationError for command /home/adam/.cache/paru/clone/dupeguru-git/src/dupeguru/.tox/py39/bin/py.test core hscommon (exited with code 1)
  137. _______________________________________ summary ________________________________________
  138. SKIPPED:  py36: InterpreterNotFound: python3.6
  139. SKIPPED:  py37: InterpreterNotFound: python3.7
  140. SKIPPED:  py38: InterpreterNotFound: python3.8
  141. ERROR:   py39: commands failed
  142. ==> ERROR: A failure occurred in check().
  143.     Aborting...
  144. error: failed to build 'dupeguru-git-4.1.1.r82.ge22d7d2f-1':
  145.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement