summaryrefslogtreecommitdiffstats
path: root/test
ModeNameSize
-rw-r--r--CMakeLists.txt12017logstatsplain
d---------ctest310logstatsplain
d---------issues557logstatsplain
d---------src583logstatsplain
d---------uscxml34logstatsplain
d---------vhdl_manual163logstatsplain
d---------w3c1054logstatsplain
td>Lib/test/test_genericpath.py3
3 files changed, 4 insertions, 3 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index 8f5dc55..ee1a215 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -584,7 +584,7 @@ def relpath(path, start=None):
if not rel_list:
return curdir
return join(*rel_list)
- except (TypeError, ValueError, AttributeError, BytesWarning):
+ except (TypeError, ValueError, AttributeError, BytesWarning, DeprecationWarning):
genericpath._check_arg_types('relpath', path, start)
raise
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index ce5f792..44ed838 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -452,6 +452,6 @@ def relpath(path, start=None):
if not rel_list:
return curdir
return join(*rel_list)
- except (TypeError, AttributeError, BytesWarning):
+ except (TypeError, AttributeError, BytesWarning, DeprecationWarning):
genericpath._check_arg_types('relpath', path, start)
raise
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py