mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Fix for bug in first.__repr__.
This commit is contained in:
parent
06a6656dc7
commit
07814fc808
@ -738,6 +738,7 @@ class first(context):
|
||||
if 'default' in kw:
|
||||
self.default = kw.pop('default')
|
||||
assert not kw, 'Bad kwargs for first.__init__'
|
||||
self.spec = specs # for __repr__
|
||||
self.specs = map(contextify, specs)
|
||||
|
||||
def __call__(self, irc, msg, args, state):
|
||||
|
@ -149,5 +149,9 @@ class ConverterTestCase(CommandsTestCase):
|
||||
self.assertError(['email'], ['foo@'])
|
||||
self.assertError(['email'], ['@foo'])
|
||||
|
||||
class FirstTestCase(CommandsTestCase):
|
||||
def testRepr(self):
|
||||
self.failUnless(repr(first('int')))
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user