summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Williams <rwilliams@lyft.com>2017-05-26 17:04:27 -0700
committerRoy Williams <rwilliams@lyft.com>2017-05-26 18:21:38 -0700
commitbe718f3a7b2b71e936dcc3b498b7013537aa9036 (patch)
tree91f6b5f4c132e2e18542f3b10e155dbf4a3ba17e /Makefile
parent644dbc2eee167407ed437421cd094af3c405d930 (diff)
downloadbabel-be718f3a7b2b71e936dcc3b498b7013537aa9036.tar.gz
Fix an invalid string to bytes comparison in Python 3
In Python 3 this branch would never evaluate to `True` due to comparing a string to bytes. This was flagged by running some unit tests with the `-bb` flag, so I've added `-bb` to run with the babel unit tests in Python3.5 Here's some docs on the `-bb` flag: https://docs.python.org/3.5/library/warnings.html#default-warning-filters https://docs.python.org/3/howto/pyporting.html#use-continuous-integration-to-stay-compatible
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 74b9a67..eafaeb4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
test: import-cldr
- @PYTHONWARNINGS=default python -m pytest
+ @PYTHONWARNINGS=default python ${PYTHON_TEST_FLAGS} -m pytest
test-cov: import-cldr
- @PYTHONWARNINGS=default python -m pytest --cov=babel
+ @PYTHONWARNINGS=default python ${PYTHON_TEST_FLAGS} -m pytest --cov=babel
test-env:
@virtualenv test-env