Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2021 12:18:41 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b9c3e4ada45f - stable/12 - netinet6 tests: Fix Python warning
Message-ID:  <202105181218.14ICIfpQ051577@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9c3e4ada45faa8f3908a44dcbe87942affb0360

commit b9c3e4ada45faa8f3908a44dcbe87942affb0360
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-05-11 13:47:45 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-05-18 12:17:46 +0000

    netinet6 tests: Fix Python warning
    
    Python 3.8 warns about line 112:
        'SyntaxWarning: "is" with a literal. Did you mean "=="?'
    
    Use '==' as Python suggests.
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 80430c15caac0c10832455f868fa01c912996982)
---
 tests/sys/netinet6/frag6/frag6_16.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/netinet6/frag6/frag6_16.py b/tests/sys/netinet6/frag6/frag6_16.py
index c38f5da4dea9..42ac8e2b4675 100644
--- a/tests/sys/netinet6/frag6/frag6_16.py
+++ b/tests/sys/netinet6/frag6/frag6_16.py
@@ -109,7 +109,7 @@ def main():
 	foffset=(int)(1288/8)
 	mbit=1
 	for i in range(1,30):
-		if i is 29:
+		if i == 29:
 			mbit=0
 		ip6f0n = sp.Ether() / \
 			sp.IPv6(src=args.src[0], dst=args.to[0]) / \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105181218.14ICIfpQ051577>