MAINT: Upgrade numpy and fix warnings.

Mostly fixes ambiguous calls to numpy.full, and uses explicitly-united
NaT values.
This commit is contained in:
Scott Sanderson
2016-02-11 18:46:39 -05:00
committed by Richard Frank
parent b65199339e
commit 5f49fa22cb
15 changed files with 149 additions and 121 deletions
+2 -5
View File
@@ -16,14 +16,11 @@
# This code is based on a unittest written by John Salvatier:
# https://github.com/pymc-devs/pymc/blob/pymc3/tests/test_examples.py
# Disable plotting
#
import glob
import imp
import matplotlib
from nose_parameterized import parameterized
import os
import runpy
from unittest import TestCase
from zipline.utils import parse_args, run_pipeline
@@ -45,7 +42,7 @@ class ExamplesTests(TestCase):
@parameterized.expand(((os.path.basename(f).replace('.', '_'), f) for f in
glob.glob(os.path.join(example_dir(), '*.py'))))
def test_example(self, name, example):
imp.load_source('__main__', os.path.basename(example), open(example))
runpy.run_path(example, run_name='__main__')
# Test algorithm as if scripts/run_algo.py is being used.
def test_example_run_pipline(self):