[pypy-commit] lang-smalltalk storage-cleanups: Removed obsolete conftest.py

anton_gulenko noreply at buildbot.pypy.org
Wed Aug 6 11:41:04 CEST 2014


Author: Anton Gulenko <anton.gulenko at googlemail.com>
Branch: storage-cleanups
Changeset: r1011:b3cb41345ac7
Date: 2014-08-05 19:32 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/b3cb41345ac7/

Log:	Removed obsolete conftest.py

diff --git a/spyvm/conftest.py b/spyvm/conftest.py
deleted file mode 100644
--- a/spyvm/conftest.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import py
-
-option = None
-
-def pytest_configure(config):
-    global option
-    option = config.option
-
-def pytest_addoption(parser):
-    group = parser.getgroup("smalltalk options")
-    group.addoption('--bc-trace',
-               action="store_true",
-               dest="bc_trace",
-               default=False,
-               help="print bytecodes and stack during execution")
-    group.addoption('--prim-trace',
-               action="store_true",
-               dest="prim_trace",
-               default=False,
-               help="print called primitives during execution")
diff --git a/spyvm/test/test_interpreter.py b/spyvm/test/test_interpreter.py
--- a/spyvm/test/test_interpreter.py
+++ b/spyvm/test/test_interpreter.py
@@ -1,7 +1,6 @@
 import py, operator, sys
 from spyvm import model, interpreter, primitives, storage_classes, storage_contexts, wrapper, constants, error
 from .util import create_space_interp, copy_to_module, cleanup_module, import_bytecodes
-from spyvm.conftest import option
 
 import_bytecodes(__name__)
 
@@ -840,14 +839,6 @@
          [space.w_CompiledMethod, primitives.OBJECT_AT_PUT, 2, "objectAt:put:"]],
         test)
 
-def test_runwithtrace():
-    # We run random tests with the bc_trace option turned on explicitely
-    bc_trace = option.bc_trace
-    option.bc_trace = True
-    test_storeAndPopReceiverVariableBytecode()
-    test_bc_objectAtAndAtPut()
-    option.bc_trace = bc_trace
-
 # Closure Bytecodes
 def test_bc_pushNewArrayBytecode(bytecode=pushNewArrayBytecode):
     w_frame, s_frame = new_frame(bytecode + chr(0x83))


More information about the pypy-commit mailing list