From 3ded05080416dcdc79242dff823c50bbecca9b83 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Sat, 26 Jul 2014 11:59:37 +0200 Subject: [PATCH] Replace by a string just as wide to not make this invalid binary pickle data. --- tests/test_job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_job.py b/tests/test_job.py index a9580a8..7e990c0 100644 --- a/tests/test_job.py +++ b/tests/test_job.py @@ -223,7 +223,7 @@ class TestJob(RQTestCase): # equivalent to a worker not having the most up-to-date source code # and unable to import the function) 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) job.refresh()