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/296568 /git.openstack. org/cgit/ openstack/ python- neutronclient/ commit/ ?id=2e0d641a554 2865a8104424a49 395af8b28e179c
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 2e0d641a5542865 a8104424a49395a f8b28e179c
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