mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
Fixed errors n un needed checks
This commit is contained in:
parent
c4d8be9564
commit
3ead1df728
|
@ -18,7 +18,6 @@ from rest_framework import exceptions, serializers
|
||||||
from rest_framework.compat import ProhibitNullCharactersValidator
|
from rest_framework.compat import ProhibitNullCharactersValidator
|
||||||
from rest_framework.fields import DjangoImageField, is_simple_callable
|
from rest_framework.fields import DjangoImageField, is_simple_callable
|
||||||
|
|
||||||
|
|
||||||
# Tests for helper functions.
|
# Tests for helper functions.
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
|
|
||||||
|
@ -88,7 +87,6 @@ class TestIsSimpleCallable:
|
||||||
|
|
||||||
assert is_simple_callable(ChoiceModel().get_choice_field_display)
|
assert is_simple_callable(ChoiceModel().get_choice_field_display)
|
||||||
|
|
||||||
@unittest.skipUnless(typing, 'requires python 3.5')
|
|
||||||
def test_type_annotation(self):
|
def test_type_annotation(self):
|
||||||
# The annotation will otherwise raise a syntax error in python < 3.5
|
# The annotation will otherwise raise a syntax error in python < 3.5
|
||||||
locals = {}
|
locals = {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user