Skip to content

Commit 9fe42b4

Browse files
ZackerySpytzserhiy-storchaka
authored andcommitted
bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)
eval() was being called an extra time without a filter for deprecation warnings.
1 parent 1791128 commit 9fe42b4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/test/test_ntpath.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ def tester(fn, wantResult):
3737
wantResult = os.fsencode(wantResult)
3838
elif isinstance(wantResult, tuple):
3939
wantResult = tuple(os.fsencode(r) for r in wantResult)
40-
41-
gotResult = eval(fn)
4240
if wantResult != gotResult:
4341
raise TestFailed("%s should return: %s but returned: %s" \
4442
%(str(fn), str(wantResult), repr(gotResult)))

0 commit comments

Comments
 (0)