mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-10 11:50:32 +08:00
MAINT: Upgrade numpy and fix warnings.
Mostly fixes ambiguous calls to numpy.full, and uses explicitly-united NaT values.
This commit is contained in:
committed by
Richard Frank
parent
b65199339e
commit
5f49fa22cb
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user