mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed get_or_create...test_savepoint_rollback test for Python3
The test was always skipped on Python3 because string literals are unicode
This commit is contained in:
parent
cf159e5c93
commit
36d47f72e3
@ -76,7 +76,7 @@ class GetOrCreateTests(TestCase):
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user