Skip to content

Instantly share code, notes, and snippets.

@rmcgibbo
Created February 26, 2021 00:53
Show Gist options
  • Save rmcgibbo/7bf9e23cbee8a71ed6dba553c21caf58 to your computer and use it in GitHub Desktop.
Save rmcgibbo/7bf9e23cbee8a71ed6dba553c21caf58 to your computer and use it in GitHub Desktop.
system: x86_64-linux | build_time: 2 seconds | https://github.com/NixOS/nixpkgs/pull/114371
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing setuptools-check-hook
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/w7n4c83vq9rggppc6fwkfmyw31ysiqxj-biplist-1.0.3.tar.gz
source root is biplist-1.0.3
setting SOURCE_DATE_EPOCH to timestamp 1512344196 of file biplist-1.0.3/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/biplist
copying biplist/__init__.py -> build/lib/biplist
running egg_info
writing biplist.egg-info/PKG-INFO
writing dependency_links to biplist.egg-info/dependency_links.txt
writing top-level names to biplist.egg-info/top_level.txt
reading manifest file 'biplist.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'biplist.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/biplist
copying build/lib/biplist/__init__.py -> build/bdist.linux-x86_64/wheel/biplist
running install_egg_info
Copying biplist.egg-info to build/bdist.linux-x86_64/wheel/biplist-1.0.3-py3.9.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
adding license file "AUTHORS" (matched pattern "AUTHORS*")
creating build/bdist.linux-x86_64/wheel/biplist-1.0.3.dist-info/WHEEL
creating 'dist/biplist-1.0.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'biplist/__init__.py'
adding 'biplist-1.0.3.dist-info/AUTHORS'
adding 'biplist-1.0.3.dist-info/LICENSE'
adding 'biplist-1.0.3.dist-info/METADATA'
adding 'biplist-1.0.3.dist-info/WHEEL'
adding 'biplist-1.0.3.dist-info/top_level.txt'
adding 'biplist-1.0.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/build/biplist-1.0.3/dist /build/biplist-1.0.3
Processing ./biplist-1.0.3-py3-none-any.whl
Installing collected packages: biplist
Successfully installed biplist-1.0.3
/build/biplist-1.0.3
Finished executing pipInstallPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3
strip is /nix/store/9f8y44vmjnwdjvzlff0gm3f3g6ycyyqy-binutils-2.35.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib
patching script interpreter paths in /nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3
checking for references to /build/ in /nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
============================= test session starts ==============================
platform linux -- Python 3.9.1, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /build/biplist-1.0.3
collecting ...
collected 63 items
tests/test_fuzz_results.py ............ [ 19%]
tests/test_invalid.py .......... [ 34%]
tests/test_valid.py .......... [ 50%]
tests/test_write.py .......F....................FFF [100%]
=================================== FAILURES ===================================
_________________ TestWritePlist.testConvertToXMLPlistWithData _________________
self = <test_write.TestWritePlist testMethod=testConvertToXMLPlistWithData>
def testConvertToXMLPlistWithData(self):
binplist = writePlistToString({'data': Data(b'\x01\xac\xf0\xff')})
plist = readPlistFromString(binplist)
> xmlplist = writePlistToString(plist, binary=False)
tests/test_write.py:103:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:195: in writePlistToString
rootObject = wrapDataObject(rootObject, binary)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
o = {'data': b'\x01\xac\xf0\xff'}, for_binary = False
def wrapDataObject(o, for_binary=False):
if isinstance(o, Data) and not for_binary:
v = sys.version_info
if not (v[0] >= 3 and v[1] >= 4):
o = plistlib.Data(o)
> elif isinstance(o, (bytes, plistlib.Data)) and for_binary:
E AttributeError: module 'plistlib' has no attribute 'Data'
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:154: AttributeError
________________________ TestWritePlist.testWriteToFile ________________________
self = <test_write.TestWritePlist testMethod=testWriteToFile>
def testWriteToFile(self):
for is_binary in [True, False]:
with tempfile.NamedTemporaryFile(mode='w%s' % ('b' if is_binary else ''), suffix='.plist') as plistFile:
# clear out the created file
os.unlink(plistFile.name)
self.assertFalse(os.path.exists(plistFile.name))
# write to disk
> writePlist([1, 2, 3], plistFile.name, binary=is_binary)
tests/test_write.py:251:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rootObject = [1, 2, 3], pathOrFile = '/build/tmpgbpb3bsw.plist', binary = False
def writePlist(rootObject, pathOrFile, binary=True):
if not binary:
> rootObject = wrapDataObject(rootObject, binary)
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:170:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
o = [1, 2, 3], for_binary = False
def wrapDataObject(o, for_binary=False):
if isinstance(o, Data) and not for_binary:
v = sys.version_info
if not (v[0] >= 3 and v[1] >= 4):
o = plistlib.Data(o)
> elif isinstance(o, (bytes, plistlib.Data)) and for_binary:
E AttributeError: module 'plistlib' has no attribute 'Data'
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:154: AttributeError
During handling of the above exception, another exception occurred:
self = <test_write.TestWritePlist testMethod=testWriteToFile>
def testWriteToFile(self):
for is_binary in [True, False]:
with tempfile.NamedTemporaryFile(mode='w%s' % ('b' if is_binary else ''), suffix='.plist') as plistFile:
# clear out the created file
os.unlink(plistFile.name)
self.assertFalse(os.path.exists(plistFile.name))
# write to disk
writePlist([1, 2, 3], plistFile.name, binary=is_binary)
self.assertTrue(os.path.exists(plistFile.name))
with open(plistFile.name, 'r%s' % ('b' if is_binary else '')) as f:
fileContents = f.read()
> self.lintPlist(fileContents)
tests/test_write.py:256:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/8vdzy514gg2frvcxv3zdhx912cch6xd9-python3-3.9.1/lib/python3.9/tempfile.py:493: in __exit__
self.close()
/nix/store/8vdzy514gg2frvcxv3zdhx912cch6xd9-python3-3.9.1/lib/python3.9/tempfile.py:500: in close
self._closer.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tempfile._TemporaryFileCloser object at 0x7ffff678b1c0>
unlink = <built-in function unlink>
def close(self, unlink=_os.unlink):
if not self.close_called and self.file is not None:
self.close_called = True
try:
self.file.close()
finally:
if self.delete:
> unlink(self.name)
E FileNotFoundError: [Errno 2] No such file or directory: '/build/tmpgbpb3bsw.plist'
/nix/store/8vdzy514gg2frvcxv3zdhx912cch6xd9-python3-3.9.1/lib/python3.9/tempfile.py:437: FileNotFoundError
_________________________ TestWritePlist.testXMLPlist __________________________
self = <test_write.TestWritePlist testMethod=testXMLPlist>
def testXMLPlist(self):
> self.roundTrip({'hello':'world'}, xml=True)
tests/test_write.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_write.py:37: in roundTrip
plist = writePlistToString(case, binary=(not xml))
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:195: in writePlistToString
rootObject = wrapDataObject(rootObject, binary)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
o = {'hello': 'world'}, for_binary = False
def wrapDataObject(o, for_binary=False):
if isinstance(o, Data) and not for_binary:
v = sys.version_info
if not (v[0] >= 3 and v[1] >= 4):
o = plistlib.Data(o)
> elif isinstance(o, (bytes, plistlib.Data)) and for_binary:
E AttributeError: module 'plistlib' has no attribute 'Data'
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:154: AttributeError
_____________________ TestWritePlist.testXMLPlistWithData ______________________
self = <test_write.TestWritePlist testMethod=testXMLPlistWithData>
def testXMLPlistWithData(self):
for binmode in (True, False):
> binplist = writePlistToString({'data': Data(b'\x01\xac\xf0\xff')}, binary=binmode)
tests/test_write.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:195: in writePlistToString
rootObject = wrapDataObject(rootObject, binary)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
o = {'data': b'\x01\xac\xf0\xff'}, for_binary = False
def wrapDataObject(o, for_binary=False):
if isinstance(o, Data) and not for_binary:
v = sys.version_info
if not (v[0] >= 3 and v[1] >= 4):
o = plistlib.Data(o)
> elif isinstance(o, (bytes, plistlib.Data)) and for_binary:
E AttributeError: module 'plistlib' has no attribute 'Data'
/nix/store/5zwyjr7pzixqmn9c5cpmdj3gxdspmvjf-python3.9-biplist-1.0.3/lib/python3.9/site-packages/biplist/__init__.py:154: AttributeError
=========================== short test summary info ============================
FAILED tests/test_write.py::TestWritePlist::testConvertToXMLPlistWithData - A...
FAILED tests/test_write.py::TestWritePlist::testWriteToFile - FileNotFoundErr...
FAILED tests/test_write.py::TestWritePlist::testXMLPlist - AttributeError: mo...
FAILED tests/test_write.py::TestWritePlist::testXMLPlistWithData - AttributeE...
========================= 4 failed, 59 passed in 0.61s =========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment