diff test/testthumbasm.py @ 381:6df89163e114

Fix section and ldr pseudo instruction
author Windel Bouwman
date Sat, 26 Apr 2014 17:41:56 +0200
parents 442fb043d149
children 173e20a47fda
line wrap: on
line diff
--- a/test/testthumbasm.py	Fri Apr 18 13:08:45 2014 +0200
+++ b/test/testthumbasm.py	Sat Apr 26 17:41:56 2014 +0200
@@ -1,11 +1,9 @@
 import unittest
 from ppci.outstream import BinaryOutputStream
 from ppci.objectfile import ObjectFile
-from asm import Assembler
 from testasm import AsmTestCaseBase
 from ppci.target.target_list import thumb_target
 
-a = Assembler(thumb_target)
 
 class ThumbAssemblerTestCase(AsmTestCaseBase):
     def setUp(self):
@@ -13,7 +11,7 @@
         self.obj = ObjectFile()
         self.ostream = BinaryOutputStream(self.obj)
         self.ostream.select_section('.text')
-        self.a = a #
+        self.assembler = thumb_target.assembler
 
     def testMovImm8(self):
         self.feed('mov r4, 100')
@@ -148,4 +146,3 @@
         self.feed('b henkie')
         self.check('32b41519 94420198 049332bc a340ab42 f6d0f5d1 f4e7')
 
-