[arch-commits] Commit in python-cherrypy/trunk (PKGBUILD fix-nullbyte-test.patch)

Thore Bödecker foxxx0 at archlinux.org
Wed Sep 4 08:48:28 UTC 2019


    Date: Wednesday, September 4, 2019 @ 08:48:28
  Author: foxxx0
Revision: 508001

upgpkg: python-cherrypy 18.2.0-1

update to 18.2.0, fix nullbyte test

Added:
  python-cherrypy/trunk/fix-nullbyte-test.patch
Modified:
  python-cherrypy/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |    8 +++++---
 fix-nullbyte-test.patch |   14 ++++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-04 08:30:19 UTC (rev 508000)
+++ PKGBUILD	2019-09-04 08:48:28 UTC (rev 508001)
@@ -8,7 +8,7 @@
 
 pkgname='python-cherrypy'
 _pkgname="${pkgname#python-}"
-pkgver=18.1.2
+pkgver=18.2.0
 pkgrel=1
 pkgdesc='A pythonic, object-oriented web development framework'
 arch=('any')
@@ -22,9 +22,11 @@
 source=(
   "${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/v$pkgver.tar.gz"
   'disable-sessiontest-file_concurrency.patch'
+  'fix-nullbyte-test.patch'
 )
-sha512sums=('2d31a1e89f46b648a7d765e609801bd92ddde0fea9285a71030131515990e8d6f21cb77d3b765b106bc4bee5e89ddef5868b30c4776ba77b81832022540903d3'
-            'e8abb7e3f8a064a0da529fcaf393dff305541bc273b539f3129b119d506be3be8cd67894dd4223e067b4dd8b55df8adc5d4feddb8d87188c9e528670c39e252f')
+sha512sums=('563aff736187e1b9db5775da501f2a205ce54b99ba479cc6d215c1430cea4b4211c76f9c361aeedb9f16b4e5b351d23dea423060515aa773c6437e485cc4807a'
+            'e8abb7e3f8a064a0da529fcaf393dff305541bc273b539f3129b119d506be3be8cd67894dd4223e067b4dd8b55df8adc5d4feddb8d87188c9e528670c39e252f'
+            '99c77ca8108ba18fadd9106d8b1c9509730f85832d8da12bfaefa374444b400aab1e4c998f43c7e5501a2c5a6f29091c5975883f04f5b81188fc0ca6a8f214e7')
 
 prepare() {
   cd "${srcdir}/${_pkgname}-${pkgver}"

Added: fix-nullbyte-test.patch
===================================================================
--- fix-nullbyte-test.patch	                        (rev 0)
+++ fix-nullbyte-test.patch	2019-09-04 08:48:28 UTC (rev 508001)
@@ -0,0 +1,14 @@
+--- a/cherrypy/test/test_static.py
++++ b/cherrypy/test/test_static.py
+@@ -398,8 +398,9 @@ class StaticTest(helper.CPWebCase):
+         self.assertInBody("I couldn't find that thing")
+ 
+     def test_null_bytes(self):
+-        self.getPage('/static/\x00')
+-        self.assertStatus('404 Not Found')
++        import http.client
++        with pytest.raises(http.client.InvalidURL):
++            self.getPage('/static/\x00')
+ 
+     @classmethod
+     def unicode_file(cls):


More information about the arch-commits mailing list