Skip to content

Instantly share code, notes, and snippets.

<domain type="kvm">
<name>win10-2</name>
<uuid>6ec711cc-5d62-4e8c-be2c-3807b76caae3</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">8388608</memory>
<currentMemory unit="KiB">8388608</currentMemory>
Hubolauncher
args=[]
sandboxDir=null
GameInfo{
publisherID = Hubol+Oddwarg
publisherTitle = null
defaultDir = null
updateCheckURL = http://www.oddwarg.com/Deployment/SBWII
gameID = SBWII
Hubolauncher
args=[]
sandboxDir=null
GameInfo{
publisherID = Hubol+Oddwarg
publisherTitle = null
defaultDir = null
updateCheckURL = http://www.oddwarg.com/Deployment/SBWII
gameID = SBWII
Hubolauncher
args=[]
sandboxDir=null
GameInfo{
publisherID = Hubol+Oddwarg
publisherTitle = null
defaultDir = null
updateCheckURL = http://www.oddwarg.com/Deployment/SBWII
gameID = SBWII
import trio
from trio._core._run import GLOBAL_RUN_CONTEXT
def resume_temporarily_detached_task(value, task) -> None:
print("resuming task")
resumer = GLOBAL_RUN_CONTEXT.task
try:
# We have to temporarily set GLOBAL_RUN_CONTEXT.task to the
# task we're resuming; after all, that's the task that's
# really going to be running. This wouldn't be necessary if
import trio
async def main():
exn = None
async def donothing_in(nursery) -> None:
async def donothing(*, task_status=trio.TASK_STATUS_IGNORED) -> None:
await trio.sleep(1)
if exn:
print("This exception was raised but donothing wasn't cancelled:", exn)
while True:
from cffi import FFI
def compile_stat_ffi_with_cdef(name, cdef):
ffi = FFI()
ffi.set_source(
name, """
#include <sys/stat.h>
""")
ffi.cdef(cdef)
print("compiled to", ffi.compile())
from __future__ import annotations
import typing as t
import abc
T = t.TypeVar('T')
#### Dog is one variant
class DogImpl:
def bark(self) -> str:
return "bark bark bark"
======================================================================
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")
======================================================================
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")