mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
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
20 lines
718 B
Python
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)
|