[Python-modules-commits] [python-stopit] 01/01: removed wrong file in upstream source
Adrian Alves
alvesadrian-guest at moszumanska.debian.org
Fri Aug 12 22:20:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
alvesadrian-guest pushed a commit to branch master
in repository python-stopit.
commit 3c8e69b768166e553f4286ce1a4ae41fca60ca83
Author: Adrian Alves <aalves at gmail.com>
Date: Fri Aug 12 19:19:59 2016 -0300
removed wrong file in upstream source
---
tests.py | 30 ------------------------------
1 file changed, 30 deletions(-)
diff --git a/tests.py b/tests.py
deleted file mode 100644
index 2acb5fc..0000000
--- a/tests.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# -*- coding: utf-8 -*-
-import doctest
-import os
-import unittest
-
-from stopit import ThreadingTimeout, threading_timeoutable, SignalTimeout, signal_timeoutable
-
-# We run twice the same doctest with two distinct sets fo globs
-# This one is for testing signals based timeout control
-signaling_globs = {
- 'Timeout': SignalTimeout,
- 'timeoutable': signal_timeoutable
-}
-
-# And this one is for testing threading based timeout control
-threading_globs = {
- 'Timeout': ThreadingTimeout,
- 'timeoutable': threading_timeoutable
-}
-
-
-def suite(): # Func for setuptools.setup(test_suite=xxx)
- test_suite = unittest.TestSuite()
- test_suite.addTest(doctest.DocFileSuite('README.rst', globs=signaling_globs))
- if os.name == 'posix': # Other OS have no support for signal.SIGALRM
- test_suite.addTest(doctest.DocFileSuite('README.rst', globs=threading_globs))
- return test_suite
-
-if __name__ == '__main__':
- unittest.TextTestRunner(verbosity=2).run(suite())
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-stopit.git
More information about the Python-modules-commits
mailing list