[pypy-commit] pypy py3k: Fix skipped test
amauryfa
noreply at buildbot.pypy.org
Fri Nov 30 00:34:09 CET 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r59142:bcf0ce5f4c0c
Date: 2012-11-30 00:33 +0100
http://bitbucket.org/pypy/pypy/changeset/bcf0ce5f4c0c/
Log: Fix skipped test
diff --git a/pypy/module/_warnings/interp_warnings.py b/pypy/module/_warnings/interp_warnings.py
--- a/pypy/module/_warnings/interp_warnings.py
+++ b/pypy/module/_warnings/interp_warnings.py
@@ -211,7 +211,7 @@
if not w_sourceline:
try:
# sourceline = linecache.getline(filename, lineno).strip()
- w_builtins = space.getbuiltinmodule('__builtin__')
+ w_builtins = space.getbuiltinmodule('builtins')
w_linecachemodule = space.call_method(w_builtins, '__import__',
space.wrap("linecache"))
w_sourceline = space.call_method(w_linecachemodule, "getline",
diff --git a/pypy/module/_warnings/test/test_warnings.py b/pypy/module/_warnings/test/test_warnings.py
--- a/pypy/module/_warnings/test/test_warnings.py
+++ b/pypy/module/_warnings/test/test_warnings.py
@@ -38,7 +38,6 @@
warnings.defaultaction = 'default'
def test_show_source_line(self):
- py3k_skip('fixme later')
import warnings
import sys, io
from test.warning_tests import inner
More information about the pypy-commit
mailing list