Lukasz Balcerzak  committed e1c09e6

Tries to import ipdb first at tests

  • Participants
  • Parent commits 7871e31

Comments (0)

Files changed (1)

File projector/tests/

 from django.conf import settings
 from django.test import TestCase
 class ProjectorTestCase(TestCase):
     def _get_response(self, url, data={}, method='GET', code=200, follow=False):
                 "[Enter to continue]",
             if answer == 'd':
-                import pdb; pdb.set_trace()
+                try:
+                    import ipdb
+                    ipdb.set_trace()
+                except ImportError:
+                    import pdb
+                    pdb.set_trace()
             elif answer == 'c':
             raise err