Skip to content

Commit 21f393c

Browse files
committed
move mutable class attributes to avoid stacking modifications across instances
1 parent 4710543 commit 21f393c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

neo/test/iotest/common_io_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,9 @@ class BaseTestIO:
7878
# all IO test need to modify this:
7979
ioclass = None # the IOclass to be tested
8080

81-
entities_to_test = [] # list of files to test compliances
81+
entities_to_test = [] # list of files to test compliance
8282
entities_to_download = [] # when files are at gin
8383

84-
default_arguments = []
85-
default_keyword_arguments = {}
86-
8784
# when reading then writing produces files with identical hashes
8885
hash_conserved_when_write_read = False
8986
# when writing then reading creates an identical neo object
@@ -110,6 +107,8 @@ def setUpClass(cls, *args, **kwargs):
110107
return
111108

112109
super(BaseTestIO, cls).setUpClass()
110+
cls.default_arguments = []
111+
cls.default_keyword_arguments = {}
113112
cls.higher = cls.ioclass.supported_objects[0]
114113
cls.shortname = cls.ioclass.__name__.lower().rstrip('io')
115114
# these objects can both be written and read

0 commit comments

Comments
 (0)