How to Install and Uninstall python2-pytest-timeout Package on openSUSE Leap

Last updated: June 27,2024

1. Install "python2-pytest-timeout" package

In this section, we are going to explain the necessary steps to install python2-pytest-timeout on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python2-pytest-timeout

2. Uninstall "python2-pytest-timeout" package

Please follow the guidance below to uninstall python2-pytest-timeout on openSUSE Leap:

$ sudo zypper remove python2-pytest-timeout

3. Information about the python2-pytest-timeout package on openSUSE Leap

Information for package python2-pytest-timeout:
-----------------------------------------------
Repository : Main Repository
Name : python2-pytest-timeout
Version : 1.3.4-bp153.1.20
Arch : noarch
Vendor : openSUSE
Installed Size : 50,1 KiB
Installed : No
Status : not installed
Source package : python-pytest-timeout-1.3.4-bp153.1.20.src
Summary : Pytest plugin to abort hanging tests
Description :
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.

5. The same packages on other Linux Distributions