Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some flake8 warnings

  • Loading branch information...
commit c348550d35276008018a42c002251b0e2fe9cfe1 1 parent e4b012f
Alex Gaynor authored September 07, 2013

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  tests/view_tests/tests/test_debug.py
12  tests/view_tests/tests/test_debug.py
@@ -282,17 +282,17 @@ def test_no_exception(self):
282 282
         "An exception report can be generated for just a request"
283 283
         request = self.rf.get('/test_view/')
284 284
         reporter = ExceptionReporter(request, None, None, None)
285  
-        text = reporter.get_traceback_text()
  285
+        reporter.get_traceback_text()
286 286
 
287 287
     def test_request_and_message(self):
288 288
         "A message can be provided in addition to a request"
289 289
         request = self.rf.get('/test_view/')
290 290
         reporter = ExceptionReporter(request, None, "I'm a little teapot", None)
291  
-        text = reporter.get_traceback_text()
  291
+        reporter.get_traceback_text()
292 292
 
293 293
     def test_message_only(self):
294 294
         reporter = ExceptionReporter(None, None, "I'm a little teapot", None)
295  
-        text = reporter.get_traceback_text()
  295
+        reporter.get_traceback_text()
296 296
 
297 297
 
298 298
 class ExceptionReportTestMixin(object):
@@ -376,7 +376,7 @@ def verify_unsafe_email(self, view, check_for_POST_params=True):
376 376
         with self.settings(ADMINS=(('Admin', 'admin@fattie-breakie.com'),)):
377 377
             mail.outbox = [] # Empty outbox
378 378
             request = self.rf.post('/some_url/', self.breakfast_data)
379  
-            response = view(request)
  379
+            view(request)
380 380
             self.assertEqual(len(mail.outbox), 1)
381 381
             email = mail.outbox[0]
382 382
 
@@ -409,7 +409,7 @@ def verify_safe_email(self, view, check_for_POST_params=True):
409 409
         with self.settings(ADMINS=(('Admin', 'admin@fattie-breakie.com'),)):
410 410
             mail.outbox = [] # Empty outbox
411 411
             request = self.rf.post('/some_url/', self.breakfast_data)
412  
-            response = view(request)
  412
+            view(request)
413 413
             self.assertEqual(len(mail.outbox), 1)
414 414
             email = mail.outbox[0]
415 415
 
@@ -449,7 +449,7 @@ def verify_paranoid_email(self, view):
449 449
         with self.settings(ADMINS=(('Admin', 'admin@fattie-breakie.com'),)):
450 450
             mail.outbox = [] # Empty outbox
451 451
             request = self.rf.post('/some_url/', self.breakfast_data)
452  
-            response = view(request)
  452
+            view(request)
453 453
             self.assertEqual(len(mail.outbox), 1)
454 454
             email = mail.outbox[0]
455 455
             # Frames vars are never shown in plain text email reports.

0 notes on commit c348550

Please sign in to comment.
Something went wrong with that request. Please try again.