[Jython-checkins] jython: [trivial] Regression tests include memoryview.
jeff.allen
jython-checkins at python.org
Fri Sep 27 21:17:17 CEST 2013
http://hg.python.org/jython/rev/c48f1bdee828
changeset: 7128:c48f1bdee828
parent: 7126:7ff23feeb526
user: Jeff Allen <ja.py at farowl.co.uk>
date: Fri Sep 27 08:35:39 2013 +0100
summary:
[trivial] Regression tests include memoryview.
Enables test_memoryview in regrtest, and makes comment change to PyMemoryView
files:
Lib/test/regrtest.py | 3 +--
src/org/python/core/PyMemoryView.java | 7 ++++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -28,7 +28,7 @@
-L: runleaks -- run the leaks(1) command just before exit
-R: huntrleaks -- search for reference leaks (needs debug build, v. slow)
-M: memlimit -- run very large memory-consuming tests
--e: expected -- run only tests that are expected to run and pass
+-e: expected -- run only tests that are expected to run and pass
If non-option arguments are present, they are names for tests to run,
unless -x is given, in which case they are names for tests not to run.
@@ -1222,7 +1222,6 @@
test_longexp
test_macfs
test_macostools
- test_memoryview
test_mhlib
test_mmap
test_modulefinder
diff --git a/src/org/python/core/PyMemoryView.java b/src/org/python/core/PyMemoryView.java
--- a/src/org/python/core/PyMemoryView.java
+++ b/src/org/python/core/PyMemoryView.java
@@ -1,3 +1,4 @@
+// Copyright (c) 2013 Jython Developers
package org.python.core;
import org.python.core.buffer.BaseBuffer;
@@ -9,9 +10,8 @@
import org.python.expose.MethodType;
/**
- * Class implementing the Python <code>memoryview</code> type, at present highly incomplete. It
- * provides a wrapper around the Jython buffer API, but slice operations and most others are
- * missing.
+ * Class implementing the Python <code>memoryview</code> type. It provides a wrapper around the
+ * Jython buffer API.
*/
@ExposedType(name = "memoryview", doc = BuiltinDocs.memoryview_doc, base = PyObject.class,
isBaseType = false)
@@ -660,6 +660,7 @@
* @throws PyException(AttributeError) if value cannot be converted to an integer
* @throws PyException(ValueError) if value<0 or value>255
*/
+ @Override
public synchronized void pyset(int index, PyObject value) throws PyException {
// Our chance to check the memoryview is still alive
checkNotReleased();
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list