Package Details: python2-scandir 1.10.0-8

Git Clone URL: https://aur.archlinux.org/python2-scandir.git (read-only, click to copy)
Package Base: python2-scandir
Description: Better directory iterator and faster os.walk() alternative
Upstream URL: https://github.com/benhoyt/scandir
Licenses: BSD
Submitter: hexd
Maintainer: hexd
Last Packager: hexd
Votes: 4
Popularity: 0.022430
First Submitted: 2022-06-12 05:39 (UTC)
Last Updated: 2022-06-18 04:43 (UTC)

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3

MarsSeed commented on 2022-06-15 06:58 (UTC)

@ravenblackdusk, yes, I guess so.

And the tests still failed after that?

If yes, could you try to build with the following and report if there is any difference?

git clone https://aur.archlinux.org/python2-scandir.git
cd python2-scandir
makepkg --syncdeps --rmdeps --install

ravenblackdusk commented on 2022-06-15 05:54 (UTC)

@MarsSeed I did this and still the same error:

rm -rf /var/tmp/pamac-build-dusk/python2-scandir/
export LC_ALL=C
pamac install python2-scandir

I assume the first line does the purging that you mention?

MarsSeed commented on 2022-06-14 20:26 (UTC) (edited on 2022-06-14 20:27 (UTC) by MarsSeed)

@ravenblackdusk I have tested the build with makepkg, yay and paru, both with and without defining LC_ALL=C on the command line. And in every case the build was succesful.

Though between the build runs, I've made sure I clean my build dirs (restore them to the original state as cloned from AUR git).

Did you also purge your build caches?

(Btw I've never used Pamac for AUR build, so I cannot help you investigate issues specific to that.)

ravenblackdusk commented on 2022-06-14 13:32 (UTC)

@hexd, installing version 1.10.0-6 I still have the same issue:

  File "/var/tmp/pamac-build-dusk/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/var/tmp/pamac-build-dusk/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 94, in setUp
    setup_main()
  File "/var/tmp/pamac-build-dusk/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 56, in setup_main
    os.mkdir(join(TEST_PATH, 'subdir', 'unidir\u018F'))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u018f' in position 87: ordinal not in range(128)

hexd commented on 2022-06-13 23:05 (UTC)

@MarsSeed, using LC_ALL=C indeed makes it break for me the way @jfk described. I've replaced LC_CTYPE by LC_ALL when calling the tests, I hope this fixed the issue.

MarsSeed commented on 2022-06-13 22:25 (UTC) (edited on 2022-06-13 22:26 (UTC) by MarsSeed)

@hexd, I've also encountered the same error as @jfk quoted, and your latest fix didn't help.

And also just found the root of the problem: running makepkg or yay/paru etc. with LC_ALL=C overrides these modules' use of utf-8 encoding. I've read that originally Python 2's default encoding was ascii, but modules can explicitly set their environment to use utf-8. (Also CPython is typically built with Unicode support nowadays even for Python 2.7; so not sure if Arch's python2 defaults to utf-8 or just some Python2.7 modules do.)

I guess forcing LC_ALL=C overrides utf-8 configuration and makes the python2 runtime environment fall back to ascii e.g. when using sys.getfilesystemencoding().

Similar test failures (UnicodeEncodeError: 'ascii' codec can't encode ...') happened when using LC_ALL=C while building my newly uploaded python2-pyopenssl module. I fixed it by setting LC_ALL=en_US.UTF-8 in a subshell within check() for running the tests.

(The subshell might not be necessary for this though. Arch repo's pyopenssl PKGBUILD that I imported already used the subshell for testing the module, so I just kept it.)

Note; only setting LC_ALL to an UTF-8 encoding helped; but none of the following alternatives worked when I tried them either separately or in combination:

  • LC_CTYPE=en_US.UTF-8
  • PYTHONIOENCODING=utf-8

hexd commented on 2022-06-13 20:23 (UTC)

@jfk, the first error is the reason for all the next ones. I've updated the PKGBUILD to clean up the mess, so that the next checking would start in a clean state, but I still don't know the reason for the first error in your system. If the error is still happening for you, please let me know:

  • What's your locale? (You can run env | grep -E '^(LANG|LC_)' | sort to get all the information I need about your locale);

  • What's the file system type and mounting options? (You can run findmnt -T ~/.cache/yay/python2-scandir to get this information).

tpaniaki commented on 2022-06-13 13:09 (UTC) (edited on 2022-06-13 13:11 (UTC) by tpaniaki)

Bunch of errors with lateste update (building with yay):

test_basic (test_scandir.TestScandirC) ... ERROR
test_bytes (test_scandir.TestScandirC) ... ERROR
test_dir_entry (test_scandir.TestScandirC) ... ERROR
test_file_attributes (test_scandir.TestScandirC) ... ERROR
test_path (test_scandir.TestScandirC) ... ERROR
test_returns_iter (test_scandir.TestScandirC) ... ERROR
test_stat (test_scandir.TestScandirC) ... ERROR
test_symlink (test_scandir.TestScandirC) ... ERROR
test_unicode (test_scandir.TestScandirC) ... ERROR
test_walk_unicode_handling (test_scandir.TestScandirC) ... ERROR
test_iter_returns_dir_entry (test_scandir.TestScandirDirEntry) ... ok
test_basic (test_scandir.TestScandirGeneric) ... ERROR
test_bytes (test_scandir.TestScandirGeneric) ... ERROR
test_dir_entry (test_scandir.TestScandirGeneric) ... ERROR
test_file_attributes (test_scandir.TestScandirGeneric) ... ERROR
test_path (test_scandir.TestScandirGeneric) ... ERROR
test_returns_iter (test_scandir.TestScandirGeneric) ... ERROR
test_stat (test_scandir.TestScandirGeneric) ... ERROR
test_symlink (test_scandir.TestScandirGeneric) ... ERROR
test_unicode (test_scandir.TestScandirGeneric) ... ERROR
test_walk_unicode_handling (test_scandir.TestScandirGeneric) ... ERROR
test_basic (test_scandir.TestScandirPython) ... ERROR
test_bytes (test_scandir.TestScandirPython) ... ERROR
test_dir_entry (test_scandir.TestScandirPython) ... ERROR
test_file_attributes (test_scandir.TestScandirPython) ... ERROR
test_path (test_scandir.TestScandirPython) ... ERROR
test_returns_iter (test_scandir.TestScandirPython) ... ERROR
test_stat (test_scandir.TestScandirPython) ... ERROR
test_symlink (test_scandir.TestScandirPython) ... ERROR
test_unicode (test_scandir.TestScandirPython) ... ERROR
test_walk_unicode_handling (test_scandir.TestScandirPython) ... ERROR
test_traversal (test_walk.TestWalk) ... ok
test_symlink_to_directory (test_walk.TestWalkSymlink) ... ok
test_symlink_to_file (test_walk.TestWalkSymlink) ... ok

======================================================================
ERROR: test_basic (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 94, in setUp
    setup_main()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 56, in setup_main
    os.mkdir(join(TEST_PATH, 'subdir', 'unidir\u018F'))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u018f' in position 85: ordinal not in range(128)

======================================================================
ERROR: test_bytes (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_dir_entry (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_file_attributes (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_path (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_returns_iter (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_stat (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_symlink (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_unicode (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_walk_unicode_handling (test_scandir.TestScandirC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 295, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_basic (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_bytes (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_dir_entry (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_file_attributes (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_path (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_returns_iter (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_stat (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_symlink (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_unicode (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_walk_unicode_handling (test_scandir.TestScandirGeneric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 279, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_basic (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_bytes (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_dir_entry (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_file_attributes (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_path (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_returns_iter (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_stat (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_symlink (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_unicode (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

======================================================================
ERROR: test_walk_unicode_handling (test_scandir.TestScandirPython)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 287, in setUp
    TestMixin.setUp(self)
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 97, in setUp
    setup_symlinks()
  File "/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/test_scandir.py", line 68, in setup_symlinks
    os.mkdir(join(TEST_PATH, 'linkdir', 'linksubdir'))
OSError: [Errno 2] No such file or directory: '/home/fabien/.cache/yay/python2-scandir/src/scandir-1.10.0/test/testdir/linkdir/linksubdir'

----------------------------------------------------------------------
Ran 34 tests in 0.007s

FAILED (errors=30)