123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import lockfile.linklockfile
- import lockfile.mkdirlockfile
- import lockfile.pidlockfile
- import lockfile.symlinklockfile
- from compliancetest import ComplianceTest
- class TestLinkLockFile(ComplianceTest):
- class_to_test = lockfile.linklockfile.LinkLockFile
- class TestSymlinkLockFile(ComplianceTest):
- class_to_test = lockfile.symlinklockfile.SymlinkLockFile
- class TestMkdirLockFile(ComplianceTest):
- class_to_test = lockfile.mkdirlockfile.MkdirLockFile
- class TestPIDLockFile(ComplianceTest):
- class_to_test = lockfile.pidlockfile.PIDLockFile
- # Check backwards compatibility
- class TestLinkFileLock(ComplianceTest):
- class_to_test = lockfile.LinkFileLock
- class TestMkdirFileLock(ComplianceTest):
- class_to_test = lockfile.MkdirFileLock
- try:
- import sqlite3 # noqa
- except ImportError:
- pass
- else:
- import lockfile.sqlitelockfile
- class TestSQLiteLockFile(ComplianceTest):
- class_to_test = lockfile.sqlitelockfile.SQLiteLockFile
|