[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Avoid DeprecationWarning on make check with Python >= 3.5

From: Yasuhito FUTATSUKI <futatuki_at_poem.co.jp>
Date: Fri, 3 Jan 2020 05:34:48 +0900

Hi,
As I saw Nathan add note about DeprecationWarning in run_test.py on
Subversion's Python 3 Support Status page yesterday, I've made a patch
to avoid warning.

I didn't read context around the code changed, I only rewrited it as the
example code[1] do.

[1] https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly

I've run it on Python 3.7.1 and it seems it can run Python test units
without DeprecationWarning.

Could anyone review this?

Thanks,

-- 
Yasuhito FUTATSUKI <futatuki_at_yf.bsdclub.org> / <futatuki_at_poem.co.jp>

Received on 2020-01-02 21:36:59 CET

This is an archived mail posted to the Subversion Dev mailing list.