summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/openbabel/testpdbformat-tabs-to-spaces.patch
blob: 0a71a72e014ad1b5cd895599c97cfa6e66eef582 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From 08cd38485d4cf1df8802da540f3018921dbc735e Mon Sep 17 00:00:00 2001
From: "Adam J. Stewart" <ajstewart426@gmail.com>
Date: Wed, 17 May 2017 10:56:23 -0500
Subject: [PATCH] Convert tabs to spaces in testpdbformat.py

See https://github.com/openbabel/openbabel/pull/1568

---
 test/testpdbformat.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/testpdbformat.py b/test/testpdbformat.py
index 40bd316..ceb8496 100644
--- a/test/testpdbformat.py
+++ b/test/testpdbformat.py
@@ -24,12 +24,12 @@ class TestPDBFormat(BaseTest):
 
     def testInsertionCodes(self):
         """
-	Testing a PDB entry with insertion codes to distinguish residues
-	upon conversion to FASTA.
+        Testing a PDB entry with insertion codes to distinguish residues
+        upon conversion to FASTA.
         """
         self.canFindExecutable("babel")
 
-	self.entryPDBwithInsertioncodes="""ATOM    406  N   VAL L  29      58.041  17.797  48.254  1.00  0.00           N  
+        self.entryPDBwithInsertioncodes="""ATOM    406  N   VAL L  29      58.041  17.797  48.254  1.00  0.00           N  
 ATOM    407  CA  VAL L  29      57.124  18.088  47.170  1.00  0.00           C  
 ATOM    408  C   VAL L  29      55.739  17.571  47.538  1.00  0.00           C  
 ATOM    409  O   VAL L  29      55.535  16.362  47.550  1.00  0.00           O  
@@ -100,9 +100,9 @@ ATOM    473  HE1 TYR L  32      48.512  15.775  42.066  1.00  0.00           H
 ATOM    474  HE2 TYR L  32      48.145  19.172  44.648  1.00  0.00           H  
 ATOM    475  HH  TYR L  32      46.462  17.658  44.280  1.00  0.00           H  
 """
-	output, error = run_exec(self.entryPDBwithInsertioncodes,
-				     "babel -ipdb -ofasta")
-	self.assertEqual(output.rstrip().rsplit("\n",1)[1], "VSSSY")
+        output, error = run_exec(self.entryPDBwithInsertioncodes,
+                                     "babel -ipdb -ofasta")
+        self.assertEqual(output.rstrip().rsplit("\n",1)[1], "VSSSY")
 
 if __name__ == "__main__":
     testsuite = []
-- 
2.9.4