mirror of
https://github.com/Hopiu/django.git
synced 2026-05-16 11:33:10 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue