Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • LilyPond LilyPond
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,017
    • Issues 1,017
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LilyPond
  • LilyPondLilyPond
  • Merge requests
  • !994

Fixed tests in python/musexpr.py

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Timofey requested to merge Levitanus/lilypond:master into master Nov 07, 2021
  • Overview 5
  • Commits 1
  • Pipelines 4
  • Changes 1

If launched as __main__ python/musexpr.py had some troubles to run:

  • several members of classes has been checked for existence by their name, but it should be done by hasatr()
  • the base class Event didn't invoke super() of Music, still the last one introduces several important members
  • expr.ly_expression() is used in test for print (line:2760), but not every kind of expression has this particular method, but <expr>.print_ly() used instead. As the last method definitely exists and invokes <expr>.ly_expression() if it needs — I used default Output_printer here.
Edited Nov 07, 2021 by Timofey
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: master