]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - regression-tests.dnsdist/test_TCPKeepAlive.py
dnsdist: Python 3 compat fixes for the regression tests
[thirdparty/pdns.git] / regression-tests.dnsdist / test_TCPKeepAlive.py
index a1672e494128142454619d6676942316fdaa91a6..b0aefbd5ec580ebb08380547efc200a4a0639248 100644 (file)
@@ -2,7 +2,12 @@
 import struct
 import time
 import dns
-from dnsdisttests import DNSDistTest, range
+from dnsdisttests import DNSDistTest
+
+try:
+  range = xrange
+except NameError:
+  pass
 
 class TestTCPKeepAlive(DNSDistTest):
     """