sys.stdout.detach does not work when debuilding

Bug #1549831 reported by Sergio Schvezov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Critical
Sergio Schvezov

Bug Description

======================================================================
ERROR: test_devel_version (snapcraft.tests.test_main.TestMain)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/sergiusens/source/github.com/ubuntu-core/snapcraft/snapcraft/tests/test_main.py", line 92, in test_devel_version
    snapcraft.main.main()
  File "/home/sergiusens/source/github.com/ubuntu-core/snapcraft/snapcraft/main.py", line 98, in main
    log.configure()
  File "/home/sergiusens/source/github.com/ubuntu-core/snapcraft/snapcraft/log.py", line 45, in configure
    sys.stdout.detach(), encoding='UTF-8', line_buffering=True)
io.UnsupportedOperation: detach

----------------------------------------------------------------------

We should treat it as an istty call returning False

Changed in snapcraft:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Sergio Schvezov (sergiusens)
milestone: none → next
Changed in snapcraft:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.