From: Matthew Fernandez Date: Tue, 15 Feb 2022 20:35:23 +0000 (+1100) Subject: tests: [nfc] use more modern 'pathlib' in #1902 X-Git-Tag: 3.0.0~24^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=809413e50910c13eab18936aaa7ae490517a6a20;p=graphviz tests: [nfc] use more modern 'pathlib' in #1902 --- diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 43a62646b..39eeea5f8 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -799,8 +799,8 @@ def test_1902(): ''' # locate our associated test case in this directory - input = os.path.join(os.path.dirname(__file__), '1902.dot') - assert os.path.exists(input), 'unexpectedly missing test case' + input = Path(__file__).parent / '1902.dot' + assert input.exists(), 'unexpectedly missing test case' # ask Graphviz to process it, which should generate a segfault if this bug # has been reintroduced