Changeset 7942 for main/waeup.kofa/trunk


Ignore:
Timestamp:
22 Mar 2012, 01:52:04 (13 years ago)
Author:
uli
Message:

pyflakes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py

    r7940 r7942  
    2626from cStringIO import StringIO
    2727from zope import schema
    28 from zope.interface import Interface, Attribute
     28from zope.interface import Interface, Attribute, implements
    2929from zope.security.testing import Principal, Participation
    3030from zope.security.management import newInteraction, endInteraction
    3131from waeup.kofa.utils import helpers
    3232
    33 from zope.interface import Interface, implements
    3433class IFakeObject(Interface):
    3534    """Some marker interface."""
     
    209208        p1 = os.path.join(self.workdir, 'sample1')
    210209        p2 = os.path.join(self.workdir, 'sample2')
    211         f1 = open(p1, 'wb').write('Hi!')
    212         f2 = open(p2, 'wb').write('Hi!')
     210        open(p1, 'wb').write('Hi!')
     211        open(p2, 'wb').write('Hi!')
    213212        assert helpers.cmp_files(open(p1, 'r'), open(p2, 'r')) is True
    214213
     
    216215        p1 = os.path.join(self.workdir, 'sample1')
    217216        p2 = os.path.join(self.workdir, 'sample2')
    218         f1 = open(p1, 'wb').write('Hi!')
    219         f2 = open(p2, 'wb').write('Ho!')
     217        open(p1, 'wb').write('Hi!')
     218        open(p2, 'wb').write('Ho!')
    220219        assert helpers.cmp_files(open(p1, 'r'), open(p2, 'r')) is False
    221220
Note: See TracChangeset for help on using the changeset viewer.