From 54ba08674b0b6e452409f3cc3deeb0d776d7f0d1 Mon Sep 17 00:00:00 2001 From: wangqi Date: Tue, 5 Jun 2018 13:47:59 +0000 Subject: [PATCH] Enable Python hash seed randomization in tests Unit tests should run with hash seed randomization on, to ensure code is not introduced that relies on ordered access of dicts, sets, etc. Python 3.3 enables this at runtime by default. Change-Id: I792cf9d24867b0bb8c9c43030ed80d5fd6ce6ec0 --- tox.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/tox.ini b/tox.ini index 11ead47..3dc49d0 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,6 @@ skip_missing_interpreters = True [testenv] setenv = VIRTUAL_ENV={envdir} - PYTHONHASHSEED=0 install_command = pip install {opts} {packages} commands = find . -type f -name "*.py[c|o]" -delete