{"action":"opened","issue":{"url":"https://api.github.com/repos/adamchainz/django-mysql/issues/189","labels_url":"https://api.github.com/repos/adamchainz/django-mysql/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/adamchainz/django-mysql/issues/189/comments","events_url":"https://api.github.com/repos/adamchainz/django-mysql/issues/189/events","html_url":"https://github.com/adamchainz/django-mysql/issues/189","id":116786913,"number":189,"title":"test_invalid_keys fails on Django 1.7","user":{"login":"MichaelAquilina","id":2650040,"avatar_url":"https://avatars.githubusercontent.com/u/2650040?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelAquilina","html_url":"https://github.com/MichaelAquilina","followers_url":"https://api.github.com/users/MichaelAquilina/followers","following_url":"https://api.github.com/users/MichaelAquilina/following{/other_user}","gists_url":"https://api.github.com/users/MichaelAquilina/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelAquilina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelAquilina/subscriptions","organizations_url":"https://api.github.com/users/MichaelAquilina/orgs","repos_url":"https://api.github.com/users/MichaelAquilina/repos","events_url":"https://api.github.com/users/MichaelAquilina/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelAquilina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-13T15:12:58Z","updated_at":"2015-11-13T15:12:58Z","closed_at":null,"body":"Another failure in `test_cache.py` which seems unrelated:\r\n\r\n```\r\nplatform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.2\r\ndjango settings: settings (from environment variable)\r\nrootdir: /home/michael/Development/django-mysql, inifile: \r\nplugins: django\r\nDjango version: 1.9.0.beta.1\r\nMySQL version: 5.6.27-0ubuntu1\r\n```\r\n\r\n```\r\nself = <tests.testapp.test_cache.MySQLCacheTests testMethod=test_invalid_keys>\r\n\r\n    def test_invalid_keys(self):\r\n        # mimic custom ``make_key`` method being defined since the default will\r\n        # never show the below warnings\r\n        def func(key, *args):\r\n            return key\r\n    \r\n        old_func = cache.key_func\r\n        cache.key_func = func\r\n    \r\n        try:\r\n            with warnings.catch_warnings(record=True) as w:\r\n                warnings.simplefilter(\"always\")\r\n                # memcached does not allow whitespace or control characters in\r\n                # keys\r\n                cache.set('key with spaces', 'value')\r\n>               assert len(w) == 2\r\nE               AssertionError: assert 3 == 2\r\nE                +  where 3 = len([<warnings.WarningMessage object at 0x7f70532a9630>, <warnings.WarningMessage object at 0x7f70532a94a8>, <warnings.WarningMessage object at 0x7f70532c1e48>])\r\n\r\ntests/testapp/test_cache.py:905: AssertionError\r\n```"}}