Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #12764: Avoid exceeding psycopg1 limits in the views tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b2db1b24c665bb6bc0957ff3b57ffd85814919d3 1 parent 9df7137
Karen Tracey authored March 22, 2010
4  tests/regressiontests/views/tests/defaults.py
@@ -31,7 +31,7 @@ def test_wrong_type_pk(self):
31 31
         self.assertEquals(response.status_code, 404)
32 32
 
33 33
     def test_shortcut_bad_pk(self):
34  
-        short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '4242424242')
  34
+        short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '42424242')
35 35
         response = self.client.get(short_url)
36 36
         self.assertEquals(response.status_code, 404)
37 37
 
@@ -43,7 +43,7 @@ def test_nonint_content_type(self):
43 43
 
44 44
     def test_bad_content_type(self):
45 45
         an_author = Author.objects.all()[0]
46  
-        short_url = '/views/shortcut/%s/%s/' % (4242424242, an_author.pk)
  46
+        short_url = '/views/shortcut/%s/%s/' % (42424242, an_author.pk)
47 47
         response = self.client.get(short_url)
48 48
         self.assertEquals(response.status_code, 404)
49 49
 

0 notes on commit b2db1b2

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