diff options
author | Adrian Sampson <adrian@radbox.org> | 2023-12-18 17:19:36 -0500 |
---|---|---|
committer | Adrian Sampson <adrian@radbox.org> | 2023-12-18 17:19:36 -0500 |
commit | 41d51209199dd3a4b13714180f7d9c90948e1895 (patch) | |
tree | c49ea6c71cd7ba45962512e44f55e3fd5171a9e4 | |
parent | b69e5e7ef69d5b831abe2f1fd3d5413a8f18bd60 (diff) |
DummyIO: Check for double "installs"
-rw-r--r-- | test/_common.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/_common.py b/test/_common.py index adddbeea9..a2ae97ba2 100644 --- a/test/_common.py +++ b/test/_common.py @@ -346,6 +346,7 @@ class DummyIO: return self.stdin.reads def install(self): + assert not self.installed, "DummyIO already installed" self.installed = True self.orig_stdin = sys.stdin |