Skip to content

Commit

Permalink
Fix DeprecationWarning: Expected text in a test suite
Browse files Browse the repository at this point in the history
See #103.
  • Loading branch information
mgedmin committed Jun 9, 2021
1 parent 7b9ec66 commit 191607e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transaction/tests/test__transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,9 +1343,9 @@ def test_setUser_explicit_path(self):

def test_user_w_none(self):
txn = self._makeOne()
txn.user = b'phreddy'
txn.user = u'phreddy'
with self.assertRaises(ValueError):
txn.user = None # resets to empty text
txn.user = None # raises
self.assertEqual(txn.user, u'phreddy')

def _test_user_non_text(self, user, path, expect, both=False):
Expand Down

0 comments on commit 191607e

Please sign in to comment.