Files
fastai/tests/__init__.py
Piotr Czapla 7934517173 Fix travis-ci crash
It fixes the seg fault crash seen in travis builds.

Mostlikely the crash was caused by the exception below that appears if
the torch, cv2 and mathplotlib aren't imported in a right order.
```
ImportError: dlopen: cannot load any more object with static TLS
```
see #286 for more details.

fix typos in .travis.yml
2018-04-28 10:44:15 +02:00

8 lines
248 B
Python

import matplotlib
matplotlib.use('agg')
import cv2,torch
# the above imports are fixing the TLS issue:
# ```ImportError: dlopen: cannot load any more object with static TLS```
# they were set after experimenting with the test sets on ubuntu 16.04