Ticket #5098 (closed: worksforme)

Opened 8 years ago

Last modified 5 years ago

Running a script with python comments at the top messes up the filename in an error

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Release 2.2
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Peter Parker

Description

"""
    Testing a comment
"""

import nonexistent

The above script fails as it should but the filename in the output is complete gibberish. Removing the comment lines restores the correct name however.

Change History

comment:1 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.1 to Release 2.2

Moved at end of release 2.1

comment:2 Changed 8 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:3 Changed 8 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to worksforme

It appears to work properly now.

comment:4 Changed 8 years ago by Peter Parker

  • Status changed from verify to verifying
  • Tester set to Peter Parker

comment:5 Changed 8 years ago by Peter Parker

  • Status changed from verifying to closed

Works for me, too.

ImportError: No module named nonexistent
  at line 5 in 'C:/test.py'

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5944

Note: See TracTickets for help on using tickets.