radish-bdd / radish

Behavior Driven Development tooling for Python. The root from red to green.
https://radish-bdd.github.io
MIT License
182 stars 49 forks source link

Fix syslog_writer.py #442

Closed fliiiix closed 2 years ago

fliiiix commented 2 years ago
Error: Hook 'syslog_writer_before_all' from /usr/lib/python3/dist-packages/radish/extensions/syslog_writer.py:67 raised: 'TypeError: openlog() argument 1 must be str, not bytes'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/radish/hookregistry.py", line 132, in call
    func(model, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/radish/extensions/syslog_writer.py", line 75, in syslog_writer_before_all
    syslog.openlog(b"radish")
TypeError: openlog() argument 1 must be str, not bytes

the fix is easy but can we write a test