Jeff Allen avatar Jeff Allen committed c48f1bd

[trivial] Regression tests include memoryview.
Enables test_memoryview in regrtest, and makes comment change to PyMemoryView

Comments (0)

Files changed (2)

Lib/test/regrtest.py

 -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.
         test_longexp
         test_macfs
         test_macostools
-        test_memoryview
         test_mhlib
         test_mmap
         test_modulefinder

src/org/python/core/PyMemoryView.java

+// Copyright (c) 2013 Jython Developers
 package org.python.core;
 
 import org.python.core.buffer.BaseBuffer;
 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)
      * @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();
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.