Skip to content

Commit

Permalink
Use python2 for tests because for travis, fix valgrind list1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazew committed Nov 23, 2021
1 parent 558e1e0 commit 2e0ab62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions tests/cached/valgrind-supressions
9 changes: 5 additions & 4 deletions tests/functions
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,11 @@ function run_cached {
export RRDTOOL=RRDTOOLCOMPAT

randport=$(python -S -c "import random; random.seed('$(basename $0)'); print(random.randrange(49152,65535))")
port=$(python -S << HERE
import socketserver
with socketserver.TCPServer(("localhost", 0), None) as s:
print(s.server_address[1])
port=$(python2 -S << HERE
import SocketServer
s = SocketServer.TCPServer(("localhost", 0), None)
print(s.server_address[1])
s.server_close()
HERE
)
ADDR="localhost:$port"
Expand Down

0 comments on commit 2e0ab62

Please sign in to comment.