Because python creates pyc|pyo files and __pycache__
directories during tox runs, certain changes in the tree,
like deletes of files, or switching branches, can create
spurious errors.
The target bytecodes for deletion are in normal directories,
but not in dot started directory.
Change-Id: Iee36c67d2e5e4d9e78b1b1b493030761e0f46e3c
Closes-Bug: #1368661
(cherry picked from commit 83d61566cee8b8e786b46103cf3e72fbe8077c1a)
Reviewed: https:/ /review. openstack. org/296567 /git.openstack. org/cgit/ openstack/ python- neutronclient/ commit/ ?id=714055857fa 669f8fa57056f22 bafde2686727c7
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 714055857fa669f 8fa57056f22bafd e2686727c7
Author: shu-mutou <email address hidden>
Date: Wed Dec 2 12:19:19 2015 +0900
Delete python bytecode before every test run
Because python creates pyc|pyo files and __pycache__
directories during tox runs, certain changes in the tree,
like deletes of files, or switching branches, can create
spurious errors.
The target bytecodes for deletion are in normal directories,
but not in dot started directory.
Change-Id: Iee36c67d2e5e4d 9e78b1b1b493030 761e0f46e3c 786b46103cf3e72 fbe8077c1a)
Closes-Bug: #1368661
(cherry picked from commit 83d61566cee8b8e