Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion 1 .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: python

python:
- 2.6
- 2.7
- pypy-5.3.1
- 3.5
Expand Down
4 changes: 2 additions & 2 deletions 4 setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def run_tests(self):
url='https://github.com/cablehead/python-consul',
license='MIT',
description=description,
long_description=open('README.rst').read() + '\n\n' +
open('CHANGELOG.rst').read(),
long_description=open('README.rst')
.read() + '\n\n' + open('CHANGELOG.rst').read(),
py_modules=py_modules,
install_requires=requirements,
extras_require={
Expand Down
2 changes: 2 additions & 0 deletions 2 tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def start_consul_instance(acl_master_token=None):
(system, node, release, version, machine, processor) = platform.uname()
if system == 'Darwin':
postfix = 'osx'
elif machine == 'aarch64':
postfix = 'aarch64'
else:
postfix = 'linux64'
bin = os.path.join(os.path.dirname(__file__), 'consul.'+postfix)
Expand Down
Binary file added BIN +50.3 MB tests/consul.aarch64
Binary file not shown.
12 changes: 8 additions & 4 deletions 12 tests/test_aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def test_kv_missing(self, loop, consul_port):

@asyncio.coroutine
def main():
fut = asyncio.async(put(), loop=loop)
x = getattr(asyncio, 'async')
fut = x(put(), loop=loop)
yield from c.kv.put('index', 'bump')
index, data = yield from c.kv.get('foo')
assert data is None
Expand Down Expand Up @@ -133,7 +134,8 @@ def test_kv_subscribe(self, loop, consul_port):

@asyncio.coroutine
def get():
fut = asyncio.async(put(), loop=loop)
x = getattr(asyncio, 'async')
fut = x(put(), loop=loop)
index, data = yield from c.kv.get('foo')
assert data is None
index, data = yield from c.kv.get('foo', index=index)
Expand Down Expand Up @@ -197,7 +199,8 @@ def test_catalog(self, loop, consul_port):

@asyncio.coroutine
def nodes():
fut = asyncio.async(register(), loop=loop)
x = getattr(asyncio, 'async')
fut = x(register(), loop=loop)
index, nodes = yield from c.catalog.nodes()
assert len(nodes) == 1
current = nodes[0]
Expand Down Expand Up @@ -228,7 +231,8 @@ def test_session(self, loop, consul_port):

@asyncio.coroutine
def monitor():
fut = asyncio.async(register(), loop=loop)
x = getattr(asyncio, 'async')
fut = x(register(), loop=loop)
index, services = yield from c.session.list()
assert services == []
yield from asyncio.sleep(20/1000.0, loop=loop)
Expand Down
9 changes: 1 addition & 8 deletions 9 tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = flake8, py26, py27, pypy, py35, py36
envlist = flake8, py27, pypy, py35, py36

[flake8]
ignore = F811,E226
Expand All @@ -17,13 +17,6 @@ deps =
commands =
py.test --reruns=3 {posargs:consul tests}

[testenv:py26]
deps =
pytest
pytest-rerunfailures
commands =
py.test --reruns=3 {posargs:consul tests}

[testenv:py35]
deps =
pytest
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.