summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-06-25 06:49:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-06-25 06:49:46 (GMT)
commit9fe42b49c79c453d905d0395150ba0607fbab18b (patch)
treebbfd48dc33aad86c8fd385240efbc260536f600e /Lib/test/test_ntpath.py
parent1791128677e71f3b93cae4bbed66ac3c6e4b5110 (diff)
downloadcpython-9fe42b49c79c453d905d0395150ba0607fbab18b.zip
cpython-9fe42b49c79c453d905d0395150ba0607fbab18b.tar.gz
cpython-9fe42b49c79c453d905d0395150ba0607fbab18b.tar.bz2
bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)
eval() was being called an extra time without a filter for deprecation warnings.
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index fc2398c..92d85ec 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)))