@@ -125,15 +125,15 @@ def test_add_iterable(self):
125125 sbol3 .set_namespace ('https://github.com/synbiodex/pysbol3' )
126126 doc = sbol3 .Document ()
127127 objects = [sbol3 .Component (name , types = [sbol3 .SBO_DNA ])
128- for name in ['foo' , 'bar' , 'baz' 'quux' ]]
128+ for name in ['foo' , 'bar' , 'baz' , 'quux' ]]
129129 result = doc .add (objects )
130130 self .assertEqual (len (objects ), len (result ))
131131 self .assertListEqual (objects , result )
132132 #
133133 # Test adding a non-TopLevel in a list
134134 doc = sbol3 .Document ()
135135 objects = [sbol3 .Component (name , types = [sbol3 .SBO_DNA ])
136- for name in ['foo' , 'bar' , 'baz' 'quux' ]]
136+ for name in ['foo' , 'bar' , 'baz' , 'quux' ]]
137137 objects .insert (2 , 'non-TopLevel' )
138138 with self .assertRaises (TypeError ):
139139 doc .add (objects )
@@ -736,14 +736,14 @@ def test_ntriples_blank_line(self):
736736 doc .add (c1 )
737737 output = doc .write_string (file_format = sbol3 .NTRIPLES )
738738 lines = output .splitlines ()
739- num_blanks = sum ([ 1 for line in lines if not line ] )
739+ num_blanks = sum (1 for line in lines if not line )
740740 # Expecting no blank lines
741741 self .assertEqual (0 , num_blanks )
742742
743743 # Now test sorted n-triples
744744 sorted_output = doc .write_string (file_format = sbol3 .SORTED_NTRIPLES )
745745 sorted_lines = sorted_output .splitlines ()
746- num_blanks = sum ([ 1 for line in sorted_lines if not line ] )
746+ num_blanks = sum (1 for line in sorted_lines if not line )
747747 # Expecting no blank lines
748748 self .assertEqual (0 , num_blanks )
749749
0 commit comments