Skip to content

Commit

Permalink
TEST: Fix test failure in python 3.
Browse files Browse the repository at this point in the history
Asset type has a different repr in py3.
  • Loading branch information
Scott Sanderson committed Nov 22, 2017
1 parent 8c8df85 commit 71789ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pipeline/test_statistical.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,11 @@ def test_simple_beta_input_validation(self):
)
result = str(e.exception)
expected = (
"SimpleBeta() expected a value of type"
" zipline.assets._assets.Asset for argument 'target',"
r"SimpleBeta\(\) expected a value of type"
" .*Asset for argument 'target',"
" but got str instead."
)
self.assertEqual(result, expected)
self.assertRegexpMatches(result, expected)

with self.assertRaises(ValueError) as e:
SimpleBeta(
Expand Down

0 comments on commit 71789ff

Please sign in to comment.