Skip to content

Commit

Permalink
Merge pull request #105 from zopefoundation/fix-deprecation-warning-i…
Browse files Browse the repository at this point in the history
…n-test-suite

Fix DeprecationWarning: Expected text in a test suite
  • Loading branch information
mgedmin authored Jun 9, 2021
2 parents 7b9ec66 + 191607e commit 647880b
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 647880b

Please sign in to comment.