diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 84d24e5bfe..6eb39ad2c3 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -299,7 +299,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): self.cursor().execute("BEGIN") def is_in_memory_db(self, name): - return name == ":memory:" or "mode=memory" in name + return name == ":memory:" or "mode=memory" in force_text(name) FORMAT_QMARK_REGEX = re.compile(r'(?