Replace by a string just as wide to not make this invalid binary pickle data.

main
Vincent Driessen 11 years ago
parent b91b89a183
commit 3ded050804

@ -223,7 +223,7 @@ class TestJob(RQTestCase):
# equivalent to a worker not having the most up-to-date source code # equivalent to a worker not having the most up-to-date source code
# and unable to import the function) # and unable to import the function)
data = self.testconn.hget(job.key, 'data') data = self.testconn.hget(job.key, 'data')
unimportable_data = data.replace(b'say_hello', b'shut_up') unimportable_data = data.replace(b'say_hello', b'nay_hello')
self.testconn.hset(job.key, 'data', unimportable_data) self.testconn.hset(job.key, 'data', unimportable_data)
job.refresh() job.refresh()

Loading…
Cancel
Save