mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Drop support for Django 2.x and Python 3.5
This commit is contained in:
@@ -36,10 +36,7 @@ SAMPLE_EMAIL_FILENAME = "sample_email.txt"
|
||||
|
||||
def test_file_path(filename):
|
||||
"""Returns path to a test file"""
|
||||
# Must convert to a plain str while we support Python 3.5,
|
||||
# because django.core.mail uses os.path functions that don't
|
||||
# accept pathlib.Path until Python 3.6.
|
||||
return str(TEST_FILES_DIR.joinpath(filename))
|
||||
return TEST_FILES_DIR.joinpath(filename)
|
||||
|
||||
|
||||
def test_file_content(filename):
|
||||
|
||||
Reference in New Issue
Block a user