Skip to content

Commit

Permalink
Skiping file open text mode test on Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
way-dave committed Nov 4, 2023
1 parent 50dc2f5 commit c1b9848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file added pyproject.toml
Empty file.
3 changes: 3 additions & 0 deletions tests/django_s3_storage_test/tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import posixpath
import sys
import time
import unittest
from contextlib import contextmanager
from datetime import timedelta
from io import StringIO
Expand Down Expand Up @@ -86,6 +88,7 @@ def testSaveTextMode(self):
with self.save_file(content="foo"):
self.assertEqual(default_storage.open("foo.txt").read(), b"foo")

@unittest.skipIf(sys.version_info < (3, 12))
def testOpenTextMode(self):
with self.save_file(content="foo"):
self.assertEqual(default_storage.open("foo.txt", "r").read(), "foo")
Expand Down

0 comments on commit c1b9848

Please sign in to comment.