Ticket #17938: 17938.patch

File 17938.patch, 1.0 KB (added by Nate Bragg, 13 years ago)
  • tests/regressiontests/servers/tests.py

    From 6dde956e74bb690db5969f65300eb0e125a4b0b1 Mon Sep 17 00:00:00 2001
    From: Nate Bragg <jonathan.bragg@alum.rpi.edu>
    Date: Mon, 19 Mar 2012 13:42:38 -0400
    Subject: [PATCH] Fixed test failing on Oracle XE 10g due to ordering.
    
    ---
     tests/regressiontests/servers/tests.py |    7 +++++--
     1 files changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/tests/regressiontests/servers/tests.py b/tests/regressiontests/servers/tests.py
    index d237c83..f127f02 100644
    a b class LiveServerDatabase(LiveServerBase):  
    211211        Refs #2879.
    212212        """
    213213        self.urlopen('/create_model_instance/')
    214         names = [person.name for person in Person.objects.all()]
    215         self.assertEquals(names, ['jane', 'robert', 'emily'])
     214        self.assertQuerysetEqual(
     215            Person.objects.all().order_by('pk'),
     216            ['jane', 'robert', 'emily'],
     217            lambda b: b.name
     218        )
Back to Top