File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ justified is acceptable:
56
56
57
57
.. code-block ::
58
58
59
+ poetry run black django_enum
59
60
poetry run isort django_enum
60
61
poetry run pylint django_enum
61
62
poetry run mypy django_enum
Original file line number Diff line number Diff line change @@ -701,7 +701,21 @@ def test_coerce_to_primitive(self):
701
701
702
702
create_params = {** self .create_params , "no_coerce" : "32767" }
703
703
704
- tester = self .MODEL_CLASS .objects .create (** create_params )
704
+ try :
705
+ tester = self .MODEL_CLASS .objects .create (** create_params )
706
+ except DatabaseError as err :
707
+ print (str (err ))
708
+ if (
709
+ IGNORE_ORA_01843
710
+ and connection .vendor == "oracle"
711
+ and "ORA-01843" in str (err )
712
+ ):
713
+ # this is an oracle bug - intermittent failure on
714
+ # perfectly fine date format in SQL
715
+ # TODO - remove when fixed
716
+ pytest .skip ("Oracle bug ORA-01843 encountered - skipping" )
717
+ return
718
+ raise
705
719
706
720
self .assertIsInstance (tester .no_coerce , int )
707
721
self .assertEqual (tester .no_coerce , 32767 )
You can’t perform that action at this time.
0 commit comments