summaryrefslogtreecommitdiff
path: root/tests/test_missing_command.py
diff options
context:
space:
mode:
authorScott Talbert <swt@techie.net>2023-02-02 19:59:38 -0500
committerScott Talbert <swt@techie.net>2023-02-02 20:12:33 -0500
commit31fab7b0edbe9b3401507b5dfa4db6aaf3fabca5 (patch)
tree2f9c643f546c32d30fb1e4543dbec5df6e3077c7 /tests/test_missing_command.py
parentaf88104d1a1e2b7c470f5ea74a6000995476e36a (diff)
downloadpexpect-31fab7b0edbe9b3401507b5dfa4db6aaf3fabca5.tar.gz
tests: Replace deprecated unittest.makeSuite
This function was never formally documented, but has been deprecated and will be removed in Python 3.13. Replaced with unittest.TestLoader.loadTestsFromTestCase.
Diffstat (limited to 'tests/test_missing_command.py')
-rwxr-xr-xtests/test_missing_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_missing_command.py b/tests/test_missing_command.py
index 92e4733..3775632 100755
--- a/tests/test_missing_command.py
+++ b/tests/test_missing_command.py
@@ -34,5 +34,5 @@ class MissingCommandTestCase (PexpectTestCase.PexpectTestCase):
if __name__ == '__main__':
unittest.main()
-suite = unittest.makeSuite(MissingCommandTestCase,'test')
+suite = unittest.TestLoader().loadTestsFromTestCase(MissingCommandTestCase)