Skip to content

Commit

Permalink
fixup! test: refactor unittest test cases to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
asfaltboy committed Apr 26, 2020
1 parent ff67321 commit f7c7f9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions advanced_filters/tests/test_get_field_choices_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def assert_view_error(client, error, exception=None, **view_kwargs):
NO_MODEL_ERROR = "App 'reps' doesn't have a 'Foo' model."


if "PyPy" in getattr(sys, "subversion", ()):
ARGUMENT_LENGTH_ERROR = "expected length 2, got 1"
elif sys.version_info >= (3, 5):
if sys.version_info >= (3, 5):
ARGUMENT_LENGTH_ERROR = "not enough values to unpack (expected 2, got 1)"
else:
ARGUMENT_LENGTH_ERROR = "need more than 1 value to unpack"
Expand Down

0 comments on commit f7c7f9d

Please sign in to comment.