Skip to content

Commit

Permalink
make tests resiliant to missing memcached
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Dec 25, 2024
1 parent ac0b3c7 commit 825ca4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def test_session_in_memcache(self):
memcache_process = None
try:
memcache_process = subprocess.Popen(["memcached", "-p", "11211"])
except:
print("No memcached")
return
try:
time.sleep(1)
request.app_name = "myapp"
conn = memcache.Client(["127.0.0.1:11211"], debug=0)
Expand Down

0 comments on commit 825ca4b

Please sign in to comment.