Commit 36d47f72 authored by Shai Berger's avatar Shai Berger
Browse files

Fixed get_or_create...test_savepoint_rollback test for Python3

The test was always skipped on Python3 because string literals are unicode
parent cf159e5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))