From 956eca08962740c39cdc8c814fd2b4ccbeace59d Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Tue, 23 Jul 2013 10:47:13 +0300 Subject: [PATCH] Ipaddress tests marked as xfailed if ipaddress package not installed --- tests/test_ip_address.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_ip_address.py b/tests/test_ip_address.py index 5aa68c3..eaf8fa3 100644 --- a/tests/test_ip_address.py +++ b/tests/test_ip_address.py @@ -1,15 +1,17 @@ +from pytest import mark import six import sqlalchemy as sa -from sqlalchemy_utils import IPAddressType +from sqlalchemy_utils.types import ip_address from tests import TestCase +@mark.xfail('ip_address.ipaddress is None') class TestIPAddressType(TestCase): def create_models(self): class Visitor(self.Base): __tablename__ = 'document' id = sa.Column(sa.Integer, primary_key=True) - ip_address = sa.Column(IPAddressType) + ip_address = sa.Column(ip_address.IPAddressType) def __repr__(self): return 'Visitor(%r)' % self.id