-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove fork of testtools internals for FullQiskitTestCase (#7311)
In #3982 we forked a bunch of internals around results handling and attachments from the testtools library to enable better stdout, stderr, and pylogging handling when running with stestr (which is our default runner in CI). This was necessary at the time because testtools relied on unittest2 (which was a rolling backport package from unittest to bring new features from newer python's unittest to older python versions) that has gone unmaintained for years and was causing incompatibilities with stdlib unittest on newer python versions. However as of the testtools 2.5.0 release it no longer depends on unittest2 and instead inherits directly from unittest fixing the compatibility issues we were facing previously. This means our fork of the result and attachment handling from testtools is no longer necessary and we can just use their TestCase. However, since we do not want to require the use of testtools outside of running with stestr this commit retains the same spit logic around when we use it to ensure that we're only opportunistically using the library if it's installed. This enables people to no have testtools (which honestly isn't the best maintained library anymore) taint their code path unless it's already installed. Fixes #7307
- Loading branch information
Showing
2 changed files
with
20 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.