Use upper constraints in pep8 test run

this is to avoid current problem due to
https://github.com/mtreinish/stestr/issues/347
but also make tests more stable in the future.

Related-Issue: PRODX-3456
Change-Id: I867bec362d83ab820aa6b11dc4770d50133ecdbf
(cherry picked from commit 0c3fe6701b6bedaab7de427c1867869e60a5decb)
diff --git a/tox.ini b/tox.ini
index 195d5a4..6fa7faf 100644
--- a/tox.ini
+++ b/tox.ini
@@ -410,6 +410,7 @@
 [testenv:pep8]
 deps =
     -r{toxinidir}/test-requirements.txt
+    -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
     autopep8
 commands =
     autopep8 --exit-code --max-line-length=79 --experimental --diff -r tempest setup.py