How to Install and Uninstall python-pytest-timeout Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 18,2024

1. Install "python-pytest-timeout" package

This guide covers the steps necessary to install python-pytest-timeout on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-pytest-timeout

2. Uninstall "python-pytest-timeout" package

Please follow the guidance below to uninstall python-pytest-timeout on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python-pytest-timeout $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-pytest-timeout package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-pytest-timeout
Priority: optional
Section: universe/python
Installed-Size: 49
Maintainer: Ubuntu Developers
Original-Maintainer: gustavo panizzo
Architecture: all
Version: 0.4-2
Depends: python-pytest, python:any (<< 2.8), python:any (>= 2.7.5-5~)
Filename: pool/universe/p/python-pytest-timeout/python-pytest-timeout_0.4-2_all.deb
Size: 12168
MD5sum: e839b29106c2c4c5a6c22894717c1ccc
SHA1: 37b0790e51af4f991c409010b7de1f268a1ea087
SHA256: af1f9ed689bdd813c349641d1507e3d47c60f49d1e6a9b84d7adf2dfbd6e0a16
Description-en: Pytest plugin to abort hanging tests - Python 2.X
This is a plugin which will terminate tests after a certain timeout.
When doing so it will show a stack dump of all threads running at the
time. This is useful when running tests under a continuous integration
server or simply if you don’t know why the test suite hangs.
.
Note that while by default on POSIX systems py.test will continue to
execute the tests after a test has timed, out this is not always
possible. Often the only sure way to interrupt a hanging test is by
terminating the entire process. As this is a hard termination
(os._exit()) it will result in no teardown, JUnit XML output etc. But
the plugin will ensure you will have the debugging output on stderr
nevertheless, which is the most important part at this stage. See below
for detailed information on the timeout methods and their side-effects.
.
The pytest-timeout plugin has been tested on Python 2.6 or higher,
including 3.X and pypy.
.
This package provides support for Python 2.X.
Description-md5: 799582534a81b4affbd09fa5a56943fa
Homepage: http://bitbucket.org/flub/pytest-timeout/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu