From 403c31383154befe58ece111755b5e4839a7738f Mon Sep 17 00:00:00 2001
From: Matthew Honnibal <honnibal+gh@gmail.com>
Date: Wed, 31 Jan 2018 20:18:35 +0100
Subject: [PATCH] Fix tests for numpy 1.14.0

---
 thinc/tests/unit/test_affine.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/thinc/tests/unit/test_affine.py b/thinc/tests/unit/test_affine.py
index 4b69d16..691990e 100644
--- a/thinc/tests/unit/test_affine.py
+++ b/thinc/tests/unit/test_affine.py
@@ -138,7 +138,8 @@ def test_predict_small(W_b_input):
     model.b[:] = b
 
     einsummed = numpy.einsum('oi,bi->bo', numpy.asarray(W, dtype='float64'),
-                            numpy.asarray(input_, dtype='float64'))
+                            numpy.asarray(input_, dtype='float64'),
+                            optimize=False)
     
     expected_output = einsummed + b
     
@@ -155,7 +156,8 @@ def test_predict_extensive(W_b_input):
     model.b[:] = b
 
     einsummed = numpy.einsum('oi,bi->bo', numpy.asarray(W, dtype='float64'),
-                            numpy.asarray(input_, dtype='float64'))
+                            numpy.asarray(input_, dtype='float64'),
+                            optimize=False)
     
     expected_output = einsummed + b
     
-- 
2.11.0

