Skip to content

Commit a9d195e

Browse files
committed
Revert "music21objects must instantiate w/o defaults"
This reverts commit 6cf1a0d.
1 parent 6cf1a0d commit a9d195e

File tree

22 files changed

+72
-118
lines changed

22 files changed

+72
-118
lines changed

music21/abcFormat/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,9 +3439,6 @@ def readstr(self, strSrc: str, number: int | None = None) -> ABCHandler:
34393439

34403440
# ------------------------------------------------------------------------------
34413441
class Test(unittest.TestCase):
3442-
def testCopyAndDeepcopy(self):
3443-
from music21.test.commonTest import testCopyAll
3444-
testCopyAll(self, globals())
34453442

34463443
def testTokenization(self):
34473444
from music21.abcFormat import testFiles

music21/alpha/analysis/fixer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,6 @@ def __init__(self, changes, midiStream, omrStream):
504504
super().__init__(changes, midiStream, omrStream, recognizer)
505505

506506
class Test(unittest.TestCase):
507-
def testCopyAndDeepcopy(self):
508-
from music21.test.commonTest import testCopyAll
509-
testCopyAll(self, globals())
510-
511507
def measuresEqual(self, m1, m2):
512508
'''
513509
Returns a tuple of (True/False, reason)

music21/alpha/analysis/hasher.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,6 @@ def __new__(cls, tupEls):
585585

586586

587587
class Test(unittest.TestCase):
588-
def testCopyAndDeepcopy(self):
589-
from music21.test.commonTest import testCopyAll
590-
testCopyAll(self, globals())
591588

592589
def _approximatelyEqual(self, a, b, sig_fig=2):
593590
'''

music21/alpha/analysis/ornamentRecognizer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,6 @@ def __init__(
262262
self.isInverted = isInverted
263263

264264
class Test(unittest.TestCase):
265-
def testCopyAndDeepcopy(self):
266-
from music21.test.commonTest import testCopyAll
267-
testCopyAll(self, globals())
268-
269265
def testRecognizeTurn(self):
270266
# set up experiment
271267
testConditions = []

music21/alpha/analysis/search.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,6 @@ def findConsecutiveScale(source, targetScale, degreesRequired=5,
251251

252252
# ------------------------------------------------------------------------------
253253
class Test(unittest.TestCase):
254-
def testCopyAndDeepcopy(self):
255-
from music21.test.commonTest import testCopyAll
256-
testCopyAll(self, globals())
257254

258255
def testFindConsecutiveScaleA(self):
259256
sc = scale.MajorScale('a4')

music21/analysis/discrete.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,9 +1413,6 @@ def analysisClassFromMethodName(method: str) -> type[DiscreteAnalysis] | None:
14131413

14141414

14151415
class Test(unittest.TestCase):
1416-
def testCopyAndDeepcopy(self):
1417-
from music21.test.commonTest import testCopyAll
1418-
testCopyAll(self, globals())
14191416

14201417
def testKeyAnalysisKrumhansl(self):
14211418
from music21 import converter

music21/analysis/reduction.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,9 +891,6 @@ def getGraphHorizontalBarWeightedData(self):
891891

892892
# ------------------------------------------------------------------------------
893893
class Test(unittest.TestCase):
894-
def testCopyAndDeepcopy(self):
895-
from music21.test.commonTest import testCopyAll
896-
testCopyAll(self, globals())
897894

898895
def testExtractionA(self):
899896
from music21 import analysis

music21/analysis/transposition.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,6 @@ def getPitchesOfDistinctTranspositions(self):
191191

192192
# ------------------------------------------------------------------------------
193193
class Test(unittest.TestCase):
194-
def testCopyAndDeepcopy(self):
195-
from music21.test.commonTest import testCopyAll
196-
testCopyAll(self, globals())
197194

198195
def testConstructTranspositionChecker(self):
199196
p = [pitch.Pitch('D#')]

music21/analysis/windowed.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,6 @@ def process(self, subStream):
363363

364364

365365
class Test(unittest.TestCase):
366-
def testCopyAndDeepcopy(self):
367-
from music21.test.commonTest import testCopyAll
368-
testCopyAll(self, globals())
369366

370367
def testBasic(self):
371368
from music21 import corpus

music21/articulations.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,6 @@ class HandbellIndication(TechnicalIndication):
662662

663663
# ------------------------------------------------------------------------------
664664
class Test(unittest.TestCase):
665-
def testCopyAndDeepcopy(self):
666-
from music21.test.commonTest import testCopyAll
667-
testCopyAll(self, globals())
668665

669666
def testBasic(self):
670667
a = FretBend()

0 commit comments

Comments
 (0)