diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-06-25 06:49:46 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-06-25 06:49:46 (GMT) |
commit | 9fe42b49c79c453d905d0395150ba0607fbab18b (patch) | |
tree | bbfd48dc33aad86c8fd385240efbc260536f600e /Lib/test/test_ntpath.py | |
parent | 1791128677e71f3b93cae4bbed66ac3c6e4b5110 (diff) | |
download | cpython-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.py | 2 |
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))) |