Let's hope Python never gets a generational garbage collector.


On Tue, Aug 13, 2013 at 2:14 PM, washort <notifications@github.com> wrote:

> In mkt/collections/tests/test_views.py:
>
> > +        p = os.path.dirname(self.collection.image_path())
> > +        if not os.path.exists(p):
> > +            os.makedirs(p)
> > +
> > +    def test_put(self):
> > +        self.grant_permission(self.profile, 'Apps:Publisher')
> > +        res = self.client.put(self.url, json.dumps({
> > +            'image': 'data:image/gif;base64,' + IMAGE_DATA}))
> > +        eq_(res.status_code, 204)
> > +        assert os.path.exists(self.collection.image_path())
> > +
> > +
> > +    def test_get(self):
> > +        img = IMAGE_DATA.decode('base64')
> > +        open(self.collection.image_path(), 'w').write(
> > +            img)
>
> I can't see how it would matter, especially in a test.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/zamboni/pull/984/files#r5749258>
> .
>