From 1a45eedc28dc79bf35bbac78162e187f190df7aa Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Mon, 24 Jun 2019 17:56:12 -0600 Subject: [PATCH] bpo-37393: Fix deprecation warnings in test_ntpath eval() was being called an extra time without a filter for deprecation warnings. --- Lib/test/test_ntpath.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index fc2398c2d518ba1..92d85ecbc4fcfed 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -37,8 +37,6 @@ def tester(fn, wantResult): wantResult = os.fsencode(wantResult) elif isinstance(wantResult, tuple): wantResult = tuple(os.fsencode(r) for r in wantResult) - - gotResult = eval(fn) if wantResult != gotResult: raise TestFailed("%s should return: %s but returned: %s" \ %(str(fn), str(wantResult), repr(gotResult)))