ports/devel/py-txaio/files/patch-test_test__packaging.py
Kubilay Kocak f3fa76be8f [NEW] devel/py-txaio: Compatibility API between asyncio/Twisted/Trollius
txaio is a helper library for writing code that runs unmodified
on both Twisted and asyncio / Trollius.

This is like six, but for wrapping over differences between
Twisted and asyncio so one can write code that runs unmodified
on both (aka source code compatibility). In other words: your
users can choose if they want asyncio or Twisted as a dependency.

WWW: https://github.com/crossbario/txaio

[1] https://github.com/crossbario/txaio/pull/53

PR:	206564
2016-01-24 12:47:20 +00:00

20 lines
718 B
Python

--- test/test_packaging.py.orig 2015-10-11 12:44:56 UTC
+++ test/test_packaging.py
@@ -37,7 +37,7 @@ import txaio
def test_sdist():
if not hasattr(subprocess, 'check_output'):
pytest.skip()
- subprocess.check_output([sys.executable, 'setup.py', 'sdist'], cwd='..')
+ subprocess.check_output([sys.executable, 'setup.py', 'sdist'])
tmp = tempfile.mkdtemp()
try:
subprocess.check_output([
@@ -47,7 +47,7 @@ def test_sdist():
'install',
'--target', tmp,
'--no-deps',
- '../dist/txaio-{}.tar.gz'.format(txaio.__version__),
+ 'dist/txaio-{}.tar.gz'.format(txaio.__version__),
])
finally:
rmtree(tmp)