Skip to content

Commit 13747c9

Browse files
author
Shakeel Mohamed
committed
make some test strings unicode strings
1 parent 20698e7 commit 13747c9

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎splunklib/searchcommands/validators.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ def __init__(self, minimum=None, maximum=None):
117117
if minimum is not None and maximum is not None:
118118
def check_range(value):
119119
if not (minimum <= value <= maximum):
120-
raise ValueError('Expected integer in the range [%d,%d]: %d' % (minimum, maximum, value))
120+
raise ValueError(u'Expected integer in the range [%d,%d]: %d' % (minimum, maximum, value))
121121
return
122122
elif minimum is not None:
123123
def check_range(value):
124124
if value < minimum:
125-
raise ValueError('Expected integer in the range [%d,+∞]: %d' % (minimum, value))
125+
raise ValueError(u'Expected integer in the range [%d,+∞]: %d' % (minimum, value))
126126
return
127127
elif maximum is not None:
128128
def check_range(value):
129129
if value > maximum:
130-
raise ValueError('Expected integer in the range [-∞,%d]: %d' % (maximum, value))
130+
raise ValueError(u'Expected integer in the range [-∞,%d]: %d' % (maximum, value))
131131
return
132132
else:
133133
def check_range(value):

‎tests/searchcommands/test_examples.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def test_option_show_configuration(self):
271271
os.path.join('input', '_empty.csv'),
272272
os.path.join('output', 'test_option_show_configuration.csv'),
273273
os.path.join('log', 'test_option_show_configuration.log')))
274-
# TODO: is this testing anything?
275274
return
276275

277276
# TODO, use a generating command that doesn't do random sampling because

0 commit comments

Comments
 (0)