Opened 2 years ago

Closed 21 months ago

#903 closed enhancement (fixed)

sasview - all non-gui tests should be converted to run in Python 3

Reported by: andyfaff Owned by:
Priority: minor Milestone: SasView 4.2.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

As part of the progress to upgrade sasview to be able to use Python 3 we should be able to run all non-gui code of sasview in Python 3.
To start with this means running files through the 2to3 tool, and will address things such as:

  • print being a function
  • raising exception objects, i.e. raise ValueError?(msg) instead of raise ValueError?, msg.
  • etc.

The CI testing should be using python 3 as well.

Change History (1)

comment:1 Changed 21 months ago by krzywon

  • Resolution set to fixed
  • Status changed from new to closed

PR109 added py3 support to sasview while maintaining py2 compatibility. All unit tests now pass when running py2 or py3.

Note: See TracTickets for help on using tickets.