From f2ac9498fdcd89be7f7a783d7371c2fd27ed71fc Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Wed, 10 Jul 2019 14:57:45 +0500 Subject: [PATCH] INCR-375 python3 comptatibility --- .../ccxcon/migrations/0001_initial_ccxcon_model.py | 2 +- .../djangoapps/ccxcon/migrations/0002_auto_20160325_0407.py | 2 +- openedx/core/djangoapps/ccxcon/tests/test_signals.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/openedx/core/djangoapps/ccxcon/migrations/0001_initial_ccxcon_model.py b/openedx/core/djangoapps/ccxcon/migrations/0001_initial_ccxcon_model.py index 80180dcfae..a956f37b8a 100644 --- a/openedx/core/djangoapps/ccxcon/migrations/0001_initial_ccxcon_model.py +++ b/openedx/core/djangoapps/ccxcon/migrations/0001_initial_ccxcon_model.py @@ -1,7 +1,7 @@ """ Initial migration """ -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals from django.db import migrations, models diff --git a/openedx/core/djangoapps/ccxcon/migrations/0002_auto_20160325_0407.py b/openedx/core/djangoapps/ccxcon/migrations/0002_auto_20160325_0407.py index ffb6ee7d68..e2bcf5ac1f 100644 --- a/openedx/core/djangoapps/ccxcon/migrations/0002_auto_20160325_0407.py +++ b/openedx/core/djangoapps/ccxcon/migrations/0002_auto_20160325_0407.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals from django.db import migrations, models diff --git a/openedx/core/djangoapps/ccxcon/tests/test_signals.py b/openedx/core/djangoapps/ccxcon/tests/test_signals.py index 559a28e307..82e06fb538 100644 --- a/openedx/core/djangoapps/ccxcon/tests/test_signals.py +++ b/openedx/core/djangoapps/ccxcon/tests/test_signals.py @@ -2,11 +2,13 @@ Test for contentstore signals receiver """ -import mock +from __future__ import absolute_import +import mock from django.test import TestCase from opaque_keys.edx.keys import CourseKey -from xmodule.modulestore.django import modulestore, SignalHandler + +from xmodule.modulestore.django import SignalHandler, modulestore class CCXConSignalTestCase(TestCase):