Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed get_or_create...test_savepoint_rollback test for Python3

The test was always skipped on Python3 because string literals are unicode
  • Loading branch information...
commit 36d47f72e300321c4a328a643d489436535d1442 1 parent cf159e5
@shaib shaib authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/get_or_create/tests.py
View
2  tests/get_or_create/tests.py
@@ -76,7 +76,7 @@ def test_savepoint_rollback(self):
warnings.simplefilter('ignore')
Person.objects.get_or_create(
birthday=date(1970, 1, 1),
- defaults={'first_name': "\xff", 'last_name': "\xff"})
+ defaults={'first_name': b"\xff", 'last_name': b"\xff"})
except (DatabaseError, DjangoUnicodeDecodeError):
Person.objects.create(
first_name="Bob", last_name="Ross", birthday=date(1950, 1, 1))
Please sign in to comment.
Something went wrong with that request. Please try again.