From 4ce6740e4409f1a2f8d568dad2fc11369fc946f6 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Tue, 27 Feb 2018 00:07:07 -0600 Subject: [PATCH] Fix pytest script-based test invocation --- test/test_persistent_dict.py | 2 +- test/test_pytools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_persistent_dict.py b/test/test_persistent_dict.py index ea6665f..1318bbb 100644 --- a/test/test_persistent_dict.py +++ b/test/test_persistent_dict.py @@ -318,5 +318,5 @@ if __name__ == "__main__": if len(sys.argv) > 1: exec(sys.argv[1]) else: - from py.test.cmdline import main + from pytest import main main([__file__]) diff --git a/test/test_pytools.py b/test/test_pytools.py index 5346c25..fbd7cf7 100644 --- a/test/test_pytools.py +++ b/test/test_pytools.py @@ -210,5 +210,5 @@ if __name__ == "__main__": if len(sys.argv) > 1: exec(sys.argv[1]) else: - from py.test.cmdline import main + from pytest import main main([__file__]) -- GitLab