diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 7042fa3dec6614b838b3a8a454f43a9eddd019dd..e29fd6549ee02ba627c0603ca2398095578bacca 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -2857,7 +2857,6 @@ function parallel_test() { cd ${PADDLE_ROOT}/build pip install hypothesis pip install ${PADDLE_ROOT}/build/python/dist/*whl - cp ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/op_test.py ${PADDLE_ROOT}/build/python cp ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/testsuite.py ${PADDLE_ROOT}/build/python cp -r ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/white_list ${PADDLE_ROOT}/build/python ut_total_startTime_s=`date +%s` diff --git a/python/paddle/fluid/tests/unittests/__init__.py b/python/paddle/fluid/tests/unittests/__init__.py index 126cbeb4938870659f09b1412125e6d0c868093e..3a0e2ace56fec514b211ea897f8affe694c1ee22 100644 --- a/python/paddle/fluid/tests/unittests/__init__.py +++ b/python/paddle/fluid/tests/unittests/__init__.py @@ -18,9 +18,8 @@ import os -if os.name == 'nt': - import sys +import sys - dirname, filename = os.path.split(os.path.abspath(__file__)) - sys.path.insert(0, dirname) - print(sys.path) +dirname, filename = os.path.split(os.path.abspath(__file__)) +sys.path.insert(0, dirname) +print(sys.path)