Current Path : /usr/lib/python2.7/dist-packages/twisted/test/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/test/test_lockfile.pyc |
[XMc @ s d Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d Z e j r y d d l m Z d d l Z Wq e k r d Z q Xn d e j f d YZ d e j f d YZ d S( s' Tests for L{twisted.python.lockfile}. iN( t unittest( t lockfile( t platform( t OpenProcesssZ On windows, lockfile.kill is not implemented in the absence of win32api and/or pywintypes.t UtilTestsc B s e Z d Z d Z d Z e j s6 d e _ n d Z d Z e j s` d e _ n d Z e e _ d Z e e _ d Z RS( sM Tests for the helper functions used to implement L{FilesystemLock}. c C sQ | j } t j d | | j t t j d | } | j | j t j d S( s L{lockfile.symlink} raises L{OSError} with C{errno} set to L{EEXIST} when an attempt is made to create a symlink which already exists. t fooN( t mktempR t symlinkt assertRaisest OSErrort assertEqualt errnot EEXIST( t selft namet exc( ( s>