Skip to content

Commit

Permalink
changed python version check to < 2.7.7 so compatibility code will ex…
Browse files Browse the repository at this point in the history
…ecute for 2.7.6. added test to verify expected behavior. (#134)
  • Loading branch information
rndrr authored and auvipy committed Apr 13, 2017
1 parent 9c6896d commit 469a00d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion amqp/platform.py
Expand Up @@ -48,7 +48,7 @@ def _versionatom(s):
HAS_TCP_MAXSEG = False


if sys.version_info < (2, 7, 6):
if sys.version_info < (2, 7, 7):
import functools

def _to_bytes_arg(fun):
Expand Down
5 changes: 5 additions & 0 deletions t/unit/test_platform.py
Expand Up @@ -3,6 +3,11 @@
from amqp.platform import _linux_version_to_tuple


def test_struct_argument_type():
from amqp.exceptions import FrameSyntaxError
FrameSyntaxError()


@pytest.mark.parametrize('s,expected', [
('3.13.0-46-generic', (3, 13, 0)),
('3.19.43-1-amd64', (3, 19, 43)),
Expand Down

0 comments on commit 469a00d

Please sign in to comment.