Skip to content

Commit

Permalink
Fix a change made by overzealous pyupgrade
Browse files Browse the repository at this point in the history
It wasn't aware that `str` had been replaced.
  • Loading branch information
bmerry committed Feb 3, 2020
1 parent 78e3ae2 commit 55bf794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_fakeredis.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_future_newbytes(self):

def test_future_newstr(self):
str = pytest.importorskip('builtins', reason='future.types not available').str
self.redis.set('Ñandu', 'foo')
self.redis.set(str('Ñandu'), 'foo')
self.assertEqual(self.redis.get('Ñandu'), b'foo')

def test_get_does_not_exist(self):
Expand Down

0 comments on commit 55bf794

Please sign in to comment.