From 2c9d53e6b236bbb896af7be0fedfe08f179ee46d Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Wed, 24 Jun 2015 17:45:01 +0200 Subject: [PATCH] fixes for Python 2 --- django_q/core.py | 4 ++-- pytest.ini | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/django_q/core.py b/django_q/core.py index 679da63..6f960c7 100644 --- a/django_q/core.py +++ b/django_q/core.py @@ -383,8 +383,8 @@ class Status(object): class Stat(Status): - def __init__(self, sentinel, message=None): - super().__init__(sentinel.parent_pid) + def __init__(self, sentinel, message=None): + super(Stat, self).__init__(sentinel.parent_pid) if message: sentinel.status = message self.tob = sentinel.tob diff --git a/pytest.ini b/pytest.ini index 8e18a7f..0427527 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,3 @@ [pytest] DJANGO_SETTINGS_MODULE=django_q.tests.settings +django_find_project = false \ No newline at end of file