python-memcache: autopkgtests fails due to invalid escape sequence '\ ' with python 3.12

Bug #2052735 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-memcache (Debian)
Fix Released
Unknown
python-memcache (Ubuntu)
Fix Released
Undecided
Unassigned
python3-defaults (Ubuntu)
New
Undecided
Unassigned

Bug Description

When running autopkgtests with python 3.12 the following failure occurs:

39s Removing autopkgtest-satdep (0) ...
439s autopkgtest [14:50:01]: test command1: python3 -c "import
memcache; print(memcache.__version__)"
439s autopkgtest [14:50:01]: test command1: [-----------------------
439s /tmp/autopkgtest.K47W5d/build.QVn/src/memcache.py:110:
SyntaxWarning: invalid escape sequence '\ '
439s """Object representing a pool of memcache servers.
439s 1.58
440s autopkgtest [14:50:02]: test command1: -----------------------]
440s autopkgtest [14:50:02]: test command1: - - - - - - - - - -
results - - - - - - - - - -
440s command1 FAIL stderr:
/tmp/autopkgtest.K47W5d/build.QVn/src/memcache.py:110: SyntaxWarning:
invalid escape sequence '\ '
440s autopkgtest [14:50:02]: test command1: - - - - - - - - - -
stderr - - - - - - - - - -
440s /tmp/autopkgtest.K47W5d/build.QVn/src/memcache.py:110:
SyntaxWarning: invalid escape sequence '\ '
440s """Object representing a pool of memcache servers.
440s autopkgtest [14:50:02]: test unittests: preparing testbed [1]

This warning was fixed upstream in the following commit[2]

[1] https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-noble/noble/amd64/p/python-memcache/20240207_145048_20ad0@/log.gz
[2] https://github.com/linsomniac/python-memcached/commit/6e57445fd3be869e9928ef609a107342500c8e97

Related branches

Vladimir Petko (vpa1977)
tags: added: update-excuse
Changed in python-memcache (Debian):
status: Unknown → New
Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts tests (install/upgrade/purge)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-memcache - 1.59-7ubuntu1

---------------
python-memcache (1.59-7ubuntu1) noble; urgency=medium

  * d/p/debian/patches/python312-remove-a-spurious-backslash.patch: fix
    Python 3.12 invalid escape sequence '\ ' warning (LP: #2052735).

 -- Vladimir Petko <email address hidden> Fri, 09 Feb 2024 10:23:54 +1300

Changed in python-memcache (Ubuntu):
status: New → Fix Released
Changed in python-memcache (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.