Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • 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,013
    • Issues 1,013
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 22
    • Merge requests 22
  • 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

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • LilyPond
  • LilyPondLilyPond
  • Merge requests
  • !988

python/musexpr.py tests fixed

  • Review changes

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

Added some hasattr checks as there're differences between Event subclasses and other Music subclasses. Changed print(ly_expression()) in test for printing through default Output_printer as some classes don't have overridden ly_expression.


Also, changed commented `self.pitch = None` to the `self.pitch = Pitch()` inside of `Note.__init__()` as somitimes it is used by printer.

P.S. I hope to find the way to use this python library within other python repositories, maybe also with python-ly part of frescobaldi project if maintainers allow integrating this library to their project.

Edited Nov 06, 2021 by Timofey
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: master