Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #32508 -- Raised ValueError instead of using "assert" in lazy(). #14114

Merged
merged 2 commits into from
Mar 15, 2021

Conversation

hramezani
Copy link
Member

Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hramezani Thanks for this patch 👍 , however I would leave most of these asserts.

tests/utils_tests/test_version.py Outdated Show resolved Hide resolved
django/utils/version.py Outdated Show resolved Hide resolved
django/utils/regex_helper.py Outdated Show resolved Hide resolved
django/utils/functional.py Outdated Show resolved Hide resolved
from django.test import SimpleTestCase
from django.utils import regex_helper


class NormalizeTests(unittest.TestCase):
class NormalizeTests(SimpleTestCase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. I'll drop the last commit.

Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hramezani Thanks for updates 👍 I pushed small edits.

tests/utils_tests/test_functional.py Outdated Show resolved Hide resolved
@felixxm felixxm changed the title Refs #32508 -- Raised TypeError and ValueError instead of using "assert" in django.utils. Refs #32508 -- Raised ValueError instead of using "assert" in lazy(). Mar 15, 2021
@felixxm felixxm merged commit 775b796 into django:main Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants