##// END OF EJS Templates
AssertPrints checks for instances of string_types
Thomas Kluyver -
Show More
@@ -18,7 +18,6 b' from __future__ import absolute_import'
18 # Imports
18 # Imports
19 #-----------------------------------------------------------------------------
19 #-----------------------------------------------------------------------------
20
20
21 import inspect
22 import os
21 import os
23 import re
22 import re
24 import sys
23 import sys
@@ -346,7 +345,7 b' class AssertPrints(object):'
346 """
345 """
347 def __init__(self, s, channel='stdout', suppress=True):
346 def __init__(self, s, channel='stdout', suppress=True):
348 self.s = s
347 self.s = s
349 if isinstance(self.s, str):
348 if isinstance(self.s, py3compat.string_types):
350 self.s = [self.s]
349 self.s = [self.s]
351 self.channel = channel
350 self.channel = channel
352 self.suppress = suppress
351 self.suppress = suppress
General Comments 0
You need to be logged in to leave comments. Login now