bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)

eval() was being called an extra time without a filter for
deprecation warnings.
This commit is contained in:
Zackery Spytz 2019-06-25 00:49:46 -06:00 committed by Serhiy Storchaka
parent 1791128677
commit 9fe42b49c7
1 changed files with 0 additions and 2 deletions

View File

@ -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)))