Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #975 from bmispelon/ticket-20158

Fix #20158: invalid code in queryset_pickle test models.
  • Loading branch information...
commit 24e710e65995b7f9edcd44efb81ae2681808e7ca 2 parents 738eef0 + a40746b
Claude Paroz authored March 29, 2013
6  tests/queryset_pickle/models.py
@@ -6,16 +6,16 @@
6 6
 from django.utils.translation import ugettext_lazy as _
7 7
 
8 8
 
9  
-def standalone_number(self):
  9
+def standalone_number():
10 10
     return 1
11 11
 
12 12
 class Numbers(object):
13 13
     @staticmethod
14  
-    def get_static_number(self):
  14
+    def get_static_number():
15 15
         return 2
16 16
 
17 17
     @classmethod
18  
-    def get_class_number(self):
  18
+    def get_class_number(cls):
19 19
         return 3
20 20
 
21 21
     def get_member_number(self):
3  tests/queryset_pickle/tests.py
@@ -9,6 +9,9 @@
9 9
 
10 10
 
11 11
 class PickleabilityTestCase(TestCase):
  12
+    def setUp(self):
  13
+        Happening.objects.create() # make sure the defaults are working (#20158)
  14
+
12 15
     def assert_pickles(self, qs):
13 16
         self.assertEqual(list(pickle.loads(pickle.dumps(qs))), list(qs))
14 17
 

0 notes on commit 24e710e

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