Skip to content

Commit

Permalink
Fixed string spec in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbednar committed Jul 13, 2017
1 parent 8e1fe0d commit 9bc151e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testdynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ def test_simple_constructor_streams_invalid_type(self):
DynamicMap(lambda x: x, streams=[3])

def test_simple_constructor_streams_invalid_mismatch(self):
regexp = "Callable '<lambda>' missing keywords to accept y stream parameters"
regexp = "Callable '<lambda>' missing keywords to accept stream parameters: y"
with self.assertRaisesRegexp(KeyError, regexp):
DynamicMap(lambda x: x, streams=[PointerXY()])

def test_simple_constructor_streams_invalid_mismatch_named(self):

def foo(x): return x
regexp = "Callable 'foo' missing keywords to accept y stream parameters"
regexp = "Callable 'foo' missing keywords to accept stream parameters: y"
with self.assertRaisesRegexp(KeyError, regexp):
DynamicMap(foo, streams=[PointerXY()])

Expand Down

0 comments on commit 9bc151e

Please sign in to comment.