#3517 closed defect (fixed)

integration tests trigger configparser bytes/unicode warning

Reported by: exarkun Owned by: GitHub <noreply@…>
Priority: normal Milestone: undecided
Component: unknown Version: n/a
Keywords: review Cc:
Launchpad Bug:

Description

The warning is:

DeprecationWarning: You passed a bytestring. Implicitly decoding as UTF-8 string. This will not work on Python 3. Please switch to using Unicode strings across the board.

It doesn't correctly point at the offending user but if you hack it to use stacklevel=3 instead of stacklevel=2 then you discover this is via src/allmydata/util/configutil.py:58 and stacklevel=4 points at integration/util.py:260:

set_config(config, 'node', 'log_gatherer.furl', flog_gatherer)

Change History (2)

comment:2 Changed at 2020-11-24T18:35:27Z by GitHub <noreply@…>

  • Owner set to GitHub <noreply@…>
  • Resolution set to fixed
  • Status changed from new to closed

In fd463229/trunk:

Merge pull request #906 from tahoe-lafs/3517.integration-tests-set-config-unicode

Use unicode for config in the integration tests

Fixes: ticket:3517

Note: See TracTickets for help on using tickets.