[pypy-commit] pypy default: more small fixes

fijal noreply at buildbot.pypy.org
Tue Dec 27 12:32:14 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r50891:8417bf8c3a59
Date: 2011-12-27 13:27 +0200
http://bitbucket.org/pypy/pypy/changeset/8417bf8c3a59/

Log:	more small fixes

diff --git a/pypy/tool/jitlogparser/parser.py b/pypy/tool/jitlogparser/parser.py
--- a/pypy/tool/jitlogparser/parser.py
+++ b/pypy/tool/jitlogparser/parser.py
@@ -27,7 +27,7 @@
         return self.args[i]
 
     def getargs(self):
-        return self.args
+        return self.args[:]
 
     def getres(self):
         return self.res
@@ -159,7 +159,7 @@
 
     def repr(self):
         if self.filename is None:
-            return "Unknown"
+            return self.bytecode_name
         return "%s, file '%s', line %d" % (self.name, self.filename,
                                            self.startlineno)
 
diff --git a/pypy/tool/jitlogparser/test/test_parser.py b/pypy/tool/jitlogparser/test/test_parser.py
--- a/pypy/tool/jitlogparser/test/test_parser.py
+++ b/pypy/tool/jitlogparser/test/test_parser.py
@@ -33,7 +33,7 @@
     ''')
     res = Function.from_operations(ops.operations, LoopStorage())
     assert len(res.chunks) == 1
-    assert res.chunks[0].repr()
+    assert 'SomeRandomStuff' in res.chunks[0].repr()
 
 def test_split():
     ops = parse('''


More information about the pypy-commit mailing list