Created
May 17, 2019 16:32
-
-
Save catern/fdecd324ab33fdb6a84205c29a474a9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_long_sockaddr (rsyscall.tests.test_socket.TestSocket) | |
SockaddrUn.from_path works correctly on long Unix socket paths | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/sbaugh/.local/src/rsyscall/python/rsyscall/sys/un.py", line 39, in from_path | |
return SockaddrUn(os.fsencode(path)) | |
File "<string>", line 3, in __init__ | |
File "/home/sbaugh/.local/src/rsyscall/python/rsyscall/sys/un.py", line 28, in __post_init__ | |
raise PathTooLongError("path", self.path, "is longer than the maximum unix address size") | |
rsyscall.sys.un.PathTooLongError: ('path', b'/run/user/1002/mkdtemp.AJzMUY0d/longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong/sock', 'is longer than the maximum unix address size') | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/home/sbaugh/.local/src/rsyscall/python/rsyscall/trio_test_case.py", line 27, in sync_test_with_setup | |
trio.run(test_with_setup) | |
File "/nix/store/rcvmvgd4djyw9xcnm8l4ibfz2vzrgf55-python3.7-trio-0.11.0/lib/python3.7/site-packages/trio/_core/_run.py", line 1444, in run | |
raise runner.main_task_outcome.error | |
File "/home/sbaugh/.local/src/rsyscall/python/rsyscall/trio_test_case.py", line 22, in test_with_setup | |
await test(self) | |
File "/home/sbaugh/.local/src/rsyscall/python/rsyscall/tests/test_socket.py", line 91, in test_long_sockaddr | |
await SockaddrUn.from_path(self.thr, longdir.value/"sock")) | |
File "/home/sbaugh/.local/src/rsyscall/python/rsyscall/sys/un.py", line 41, in from_path | |
fd = await thr.task.open(await thr.ram.to_pointer(path.parent), O.PATH|O.CLOEXEC) | |
File "/home/sbaugh/.local/src/rsyscall/python/rsyscall/handle.py", line 914, in open | |
raise FileNotFoundError(e.errno, e.strerror, ptr.value) from e.__context__ | |
FileNotFoundError: [Errno 2] No such file or directory: Path('/run/user/1002/mkdtemp.AJzMUY0d/longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment