fixes for Python 2

This commit is contained in:
Ilan Steemers
2015-06-24 17:45:01 +02:00
parent 0798c42354
commit 2c9d53e6b2
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -383,8 +383,8 @@ class Status(object):
class Stat(Status): class Stat(Status):
def __init__(self, sentinel, message=None): def __init__(self, sentinel, message=None):
super().__init__(sentinel.parent_pid) super(Stat, self).__init__(sentinel.parent_pid)
if message: if message:
sentinel.status = message sentinel.status = message
self.tob = sentinel.tob self.tob = sentinel.tob
+1
View File
@@ -1,2 +1,3 @@
[pytest] [pytest]
DJANGO_SETTINGS_MODULE=django_q.tests.settings DJANGO_SETTINGS_MODULE=django_q.tests.settings
django_find_project = false