Curtis Gedak
|
7f592bae41
|
Fix Python 3.6 DeprecationWarning invalid escape sequence messages
Fix by ensuring that regular expressions are constructed using either
raw string literals [1] or double backslashes [2].
[1] https://stackoverflow.com/questions/44325948/pandas-invalid-escape-sequence-after-update
[2] https://github.com/joblib/joblib/pull/526
Note that python only shows the deprecation warnings on initial run [3].
[3] https://bugs.python.org/issue30091
To work around this issue, remove the cached bytecode with:
find . -name "__pycache__" -exec rm -rf {} \;
Then to prevent compiling to bytecode add the "-B" option to python:
python3 -B -m pytest -vs
|
2018-11-16 12:52:56 -07:00 |
|