Browse Source

reload has been removed from Python3.

master
Xavier Ordoquy 12 years ago
parent
commit
18357cd69a
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      tests/functional/checkout_tests.py

+ 6
- 0
tests/functional/checkout_tests.py View File

@@ -16,6 +16,12 @@ from oscar.apps.voucher.models import Voucher
16 16
 from oscar.apps.offer.models import ConditionalOffer
17 17
 from oscar.test.basket import add_product
18 18
 
19
+# Python 3 compat
20
+try:
21
+    from imp import reload
22
+except ImportError:
23
+    pass
24
+
19 25
 
20 26
 class CheckoutMixin(object):
21 27
 

Loading…
Cancel
Save