From aad374941b28b99e19b1d78044eaeaf44e2e6d22 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 10 Jul 2016 21:56:40 -0600 Subject: [PATCH] Cleanup unneeded variables. --- bikeshop_project/registration/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bikeshop_project/registration/tests.py b/bikeshop_project/registration/tests.py index ded8282..3e7d626 100644 --- a/bikeshop_project/registration/tests.py +++ b/bikeshop_project/registration/tests.py @@ -10,8 +10,8 @@ class TestCustomUserManager(TestCase): self.assertTrue(new_user.pk) def test_create_user_no_email(self): - with self.assertRaises(ValueError) as context_manager: - new_user = CustomUser.objects.create_user(email=None) + with self.assertRaises(ValueError): + CustomUser.objects.create_user(email=None) def test_create_superuser(self): new_user = CustomUser.objects\