From 3ba89e736306ef6be7c97025e0ff3655a8f6d52c Mon Sep 17 00:00:00 2001 From: Sourabh Bajaj Date: Tue, 30 May 2017 14:19:25 -0700 Subject: [PATCH] Clean up pyc files before running tests --- sdks/python/tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini index 917e907b5ce2..2166f6a4ee80 100644 --- a/sdks/python/tox.ini +++ b/sdks/python/tox.ini @@ -31,6 +31,8 @@ deps = grpcio-tools==1.3.5 commands = python --version + # Clean up all previous python generated files. + - find apache_beam -type f -name '*.pyc' -delete pip install -e .[test] python apache_beam/examples/complete/autocomplete_test.py python setup.py test @@ -50,6 +52,8 @@ deps = whitelist_externals=find commands = python --version + # Clean up all previous python generated files. + - find apache_beam -type f -name '*.pyc' -delete # Clean up all previous cython generated files. - find apache_beam -type f -name '*.c' -delete - find apache_beam -type f -name '*.so' -delete @@ -72,6 +76,8 @@ deps = commands = pip install -e .[test,gcp] python --version + # Clean up all previous python generated files. + - find apache_beam -type f -name '*.pyc' -delete python apache_beam/examples/complete/autocomplete_test.py python setup.py test passenv = TRAVIS*