From 40686429e68b8974df95007b6aa952733f7c115c Mon Sep 17 00:00:00 2001
From: Guillaume Valadon <guillaume.valadon@ssi.gouv.fr>
Date: Wed, 4 Jan 2017 16:49:22 +0100
Subject: [PATCH] Fix in6_getLocalUniquePrefix() unit test

---
 test/regression.uts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/regression.uts b/test/regression.uts
index 7739a02b..9eaa8e21 100644
--- a/test/regression.uts
+++ b/test/regression.uts
@@ -7311,7 +7311,7 @@ len([ip for ip in n1]) == 2
 = in6_getLocalUniquePrefix()
 
 p = in6_getLocalUniquePrefix()
-len(p) == 16 and p.startswith("fd")
+len(inet_pton(socket.AF_INET6, p)) == 16 and p.startswith("fd")
 
 = Misc addresses manipulation functions
 
-- 
GitLab