Ticket #18326: django-ticket18326.diff

File django-ticket18326.diff, 882 bytes (added by Michael Manfre, 12 years ago)
  • tests/regressiontests/servers/tests.py

    diff --git a/tests/regressiontests/servers/tests.py b/tests/regressiontests/servers/tests.py
    index 5d287a1..e40ad30 100644
    a b class LiveServerViews(LiveServerBase):  
    121121        Refs #2879.
    122122        """
    123123        f = self.urlopen('/static/example_static_file.txt')
    124         self.assertEqual(f.read(), 'example static file\n')
     124        self.assertEqual(f.read().rstrip('\r\n'), 'example static file')
    125125
    126126    def test_media_files(self):
    127127        """
    class LiveServerViews(LiveServerBase):  
    129129        Refs #2879.
    130130        """
    131131        f = self.urlopen('/media/example_media_file.txt')
    132         self.assertEqual(f.read(), 'example media file\n')
     132        self.assertEqual(f.read().rstrip('\r\n'), 'example media file')
    133133
    134134
    135135class LiveServerDatabase(LiveServerBase):
Back to Top