@@ -104,14 +104,15 @@ def test_fastq(self):
104104
105105 def test_platform (self ):
106106 #test unknown
107- fqfile = 'test .fq'
107+ fqfile = 'test1 .fq'
108108 with open (fqfile , 'w' ) as fw :
109109 fw .write ("@read1\n " )
110110 fw .write ("AAAAAAAAAA\n " )
111111 fw .write ("+\n " )
112112 fw .write (" \n " )
113113 fq = pyfastx .Fastq (fqfile )
114114 self .assertEqual (fq .encoding_type , ['Unknown' ])
115+ del fq
115116 os .remove ("{}.fxi" .format (fqfile ))
116117
117118 with open (fqfile , 'w' ) as fw :
@@ -124,6 +125,7 @@ def test_platform(self):
124125 fw .write ("{}\n " .format ('' .join (qs )))
125126 fq = pyfastx .Fastq (fqfile )
126127 self .assertIn ("Solexa Solexa+64" , fq .encoding_type )
128+ del fq
127129 os .remove ("{}.fxi" .format (fqfile ))
128130
129131 with open (fqfile , 'w' ) as fw :
@@ -136,6 +138,7 @@ def test_platform(self):
136138 fw .write ("{}\n " .format ('' .join (qs )))
137139 fq = pyfastx .Fastq (fqfile )
138140 self .assertIn ("Illumina 1.3+ Phred+64" , fq .encoding_type )
141+ del fq
139142 os .remove ("{}.fxi" .format (fqfile ))
140143
141144 with open (fqfile , 'w' ) as fw :
@@ -148,6 +151,7 @@ def test_platform(self):
148151 fw .write ("{}\n " .format ('' .join (qs )))
149152 fq = pyfastx .Fastq (fqfile )
150153 self .assertIn ("Illumina 1.5+ Phred+64" , fq .encoding_type )
154+ del fq
151155 os .remove ("{}.fxi" .format (fqfile ))
152156 os .remove (fqfile )
153157
0 commit comments