File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 29
29
from django .test import SimpleTestCase , override_settings
30
30
from django .test .utils import requires_tz_support
31
31
from django .utils .translation import gettext_lazy
32
- from django .utils .version import PY311
33
32
34
33
try :
35
34
from aiosmtpd .controller import Controller
@@ -791,13 +790,7 @@ def test_backend_arg(self):
791
790
filebased .EmailBackend ,
792
791
)
793
792
794
- if sys .platform == "win32" and not PY311 :
795
- msg = (
796
- "_getfullpathname: path should be string, bytes or os.PathLike, not "
797
- "object"
798
- )
799
- else :
800
- msg = "expected str, bytes or os.PathLike object, not object"
793
+ msg = " not object"
801
794
with self .assertRaisesMessage (TypeError , msg ):
802
795
mail .get_connection (
803
796
"django.core.mail.backends.filebased.EmailBackend" , file_path = object ()
You can’t perform that action at this time.
0 commit comments