10000 BUG: Make numpy import when run with Python flag '-OO'. by charris · Pull Request #5149 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Make numpy import when run with Python flag '-OO'. #5149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 4, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
TST: Add test with python flag -OO.
  • Loading branch information
charris committed Oct 4, 2014
commit 43ca904f79ced66552ff02e7e92da1c4566beadd
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ matrix:
- python: 3.2
env: USE_DEBUG=1
- python: 2.7
env: NPY_SEPARATE_COMPILATION=0
env: NPY_SEPARATE_COMPILATION=0 PYTHON_OO=1
- python: 3.3
env: NPY_SEPARATE_COMPILATION=0
- python: 2.7
Expand Down
5 changes: 5 additions & 0 deletions tools/travis-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ run_test()
if [ -n "$USE_DEBUG" ]; then
export PYTHONPATH=$PWD
fi

# We change directories to make sure that python won't find the copy
# of numpy in the source directory.
mkdir -p empty
Expand All @@ -109,6 +110,10 @@ if [ -n "$USE_DEBUG" ]; then
PYTHON=python3-dbg
fi

if [ -n "$PYTHON_OO" ]; then
PYTHON="$PYTHON -OO"
fi

export PYTHON
export PIP
if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
Expand Down
0