Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
(cherry picked from bb0e00687688dcca120f257a64560d0c3df7312d)

Co-authored-by: Joel Payne <15524072+LilSpazJoekp@users.noreply.github.com>
  • Loading branch information
bboe and LilSpazJoekp committed Feb 23, 2021
1 parent f101446 commit 89556d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion asyncpraw/exceptions.py
Expand Up @@ -219,7 +219,7 @@ class MissingRequiredAttributeException(ClientException):


class ReadOnlyException(ClientException):
"""Raised when a method call requires read_only mode to be disabled."""
"""Raised when a method call requires :attr:`.read_only` mode to be disabled."""


class TooLargeMediaException(ClientException):
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_deprecations.py
Expand Up @@ -79,7 +79,6 @@ async def test_gild_method(self):
assert excinfo.value.args[0] == "`.gild` has been renamed to `.award`."

async def test_reddit_user_me_read_only(self):
self.reddit.read_only = True
with pytest.raises(DeprecationWarning):
await self.reddit.user.me()

Expand Down

0 comments on commit 89556d2

Please sign in to comment.