forked from pool/python-Paste
* Filter Deprecationwarning for one test script. - Remove Python 2 gubbins. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=60
17 lines
478 B
Diff
17 lines
478 B
Diff
Index: Paste-3.5.2/tests/cgiapp_data/form.cgi
|
|
===================================================================
|
|
--- Paste-3.5.2.orig/tests/cgiapp_data/form.cgi
|
|
+++ Paste-3.5.2/tests/cgiapp_data/form.cgi
|
|
@@ -2,6 +2,11 @@
|
|
|
|
from __future__ import print_function
|
|
|
|
+import warnings
|
|
+# Since the Paste machinery expects these scripts to return no stderr,
|
|
+# filter all DeprecationWarnings
|
|
+warnings.simplefilter("ignore", category=DeprecationWarning)
|
|
+
|
|
import cgi
|
|
import six
|
|
|