Home
last modified time | relevance | path

Searched refs:UnsupportedOperation (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython3/Lib/
D_compression.py18 raise io.UnsupportedOperation("File not open for reading")
22 raise io.UnsupportedOperation("File not open for writing")
26 raise io.UnsupportedOperation("Seeking is only supported "
29 raise io.UnsupportedOperation("The underlying file object "
Dio.py54 from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation,
62 UnsupportedOperation.__module__ = "io"
D_pyio.py309 UnsupportedOperation = io.UnsupportedOperation variable
311 class UnsupportedOperation(OSError, ValueError): class
352 raise UnsupportedOperation("%s.%s() not supported" %
447 raise UnsupportedOperation("File or stream is not seekable."
461 raise UnsupportedOperation("File or stream is not readable."
475 raise UnsupportedOperation("File or stream is not writable."
1632 raise UnsupportedOperation('File not open for reading')
1636 raise UnsupportedOperation('File not open for writing')
2010 except (AttributeError, UnsupportedOperation):
2135 raise UnsupportedOperation(
[all …]
Dsocket.py351 except (AttributeError, io.UnsupportedOperation) as err:
/external/rust/crates/nix/test/sys/
Dtest_ptrace.rs29 assert!(err != Error::UnsupportedOperation); in test_ptrace_setoptions()
38 assert!(err != Error::UnsupportedOperation); in test_ptrace_getevent()
46 if let Err(Error::UnsupportedOperation) = ptrace::getsiginfo(getpid()) { in test_ptrace_getsiginfo()
57 if let Err(Error::UnsupportedOperation) = ptrace::setsiginfo(getpid(), &siginfo) { in test_ptrace_setsiginfo()
Dtest_signal.rs96 …t_eq!(unsafe { signal(Signal::SIGINT, action_handler) }.unwrap_err(), Error::UnsupportedOperation); in test_signal_sigaction()
/external/python/cpython2/Lib/test/
Dtest_imghdr.py23 raise io.UnsupportedOperation
26 raise io.UnsupportedOperation
106 with self.assertRaises(io.UnsupportedOperation):
Dtest_memoryio.py66 self.assertRaises(self.UnsupportedOperation, buf.detach)
402 UnsupportedOperation = pyio.UnsupportedOperation variable in PyBytesIOTest
635 UnsupportedOperation = pyio.UnsupportedOperation variable in PyStringIOTest
653 UnsupportedOperation = pyio.UnsupportedOperation variable in PyStringIOPickleTest
665 UnsupportedOperation = io.UnsupportedOperation variable in CBytesIOTest
712 UnsupportedOperation = io.UnsupportedOperation variable in CStringIOTest
760 UnsupportedOperation = io.UnsupportedOperation variable in CStringIOPickleTest
Daudiotests.py11 raise io.UnsupportedOperation
14 raise io.UnsupportedOperation
/external/python/cpython3/Lib/test/
Dtest_imghdr.py27 raise io.UnsupportedOperation
30 raise io.UnsupportedOperation
129 with self.assertRaises(io.UnsupportedOperation):
Dtest_memoryio.py70 self.assertRaises(self.UnsupportedOperation, buf.detach)
433 UnsupportedOperation = pyio.UnsupportedOperation variable in PyBytesIOTest
696 UnsupportedOperation = pyio.UnsupportedOperation variable in PyStringIOTest
713 UnsupportedOperation = pyio.UnsupportedOperation variable in PyStringIOPickleTest
725 UnsupportedOperation = io.UnsupportedOperation variable in CBytesIOTest
812 UnsupportedOperation = io.UnsupportedOperation variable in CStringIOTest
859 UnsupportedOperation = io.UnsupportedOperation variable in CStringIOPickleTest
Dtest_io.py246 raise self.UnsupportedOperation("not seekable")
249 raise self.UnsupportedOperation("not seekable")
252 raise self.UnsupportedOperation("not seekable")
255 UnsupportedOperation = io.UnsupportedOperation variable in CMockUnseekableIO
258 UnsupportedOperation = pyio.UnsupportedOperation variable in PyMockUnseekableIO
405 exc = self.UnsupportedOperation
1210 self.assertRaises(self.UnsupportedOperation, bufio.tell)
1211 self.assertRaises(self.UnsupportedOperation, bufio.seek, 0)
1488 self.assertRaises(self.UnsupportedOperation, bufio.tell)
1489 self.assertRaises(self.UnsupportedOperation, bufio.seek, 0)
[all …]
Daudiotests.py9 raise io.UnsupportedOperation
12 raise io.UnsupportedOperation
Dtest_gzip.py40 raise io.UnsupportedOperation
43 raise io.UnsupportedOperation
Dtest_lzma.py2 from io import BytesIO, UnsupportedOperation, DEFAULT_BUFFER_SIZE
710 self.assertRaises(UnsupportedOperation, f.fileno)
/external/rust/crates/nix/src/
Denv.rs51 Err(Error::UnsupportedOperation) in clearenv()
Dlib.rs106 UnsupportedOperation, enumerator
160 Error::UnsupportedOperation => write!(f, "Unsupported Operation"), in fmt()
/external/python/cpython2/Lib/
Dio.py54 from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation,
D_pyio.py260 class UnsupportedOperation(ValueError, IOError): class
302 raise UnsupportedOperation("%s.%s() not supported" %
/external/python/apitools/apitools/base/py/
Dgzip_test.py47 raise io.UnsupportedOperation
50 raise io.UnsupportedOperation
/external/python/cpython3/Doc/library/
Dio.rst152 .. exception:: UnsupportedOperation
193 to raise :exc:`UnsupportedOperation` if they do not support a given operation.
254 implementations may raise a :exc:`ValueError` (or :exc:`UnsupportedOperation`)
486 :exc:`UnsupportedOperation`.
771 :exc:`UnsupportedOperation`.
823 raise :exc:`UnsupportedOperation`.
/external/python/pyfakefs/pyfakefs/tests/
Dfake_open_test.py323 self.assertRaises(io.UnsupportedOperation, fake_file.read, 0)
324 self.assertRaises(io.UnsupportedOperation, fake_file.readline)
1024 self.assertRaises(io.UnsupportedOperation, fake_file.read, 0)
1025 self.assertRaises(io.UnsupportedOperation, fake_file.readline)
/external/python/cpython2/Doc/library/
Dio.rst202 .. exception:: UnsupportedOperation
451 :exc:`UnsupportedOperation`.
670 :exc:`UnsupportedOperation`.
723 raise :exc:`UnsupportedOperation`.
/external/python/cpython3/Lib/asyncio/
Dproactor_events.py710 except (AttributeError, io.UnsupportedOperation) as err:
/external/rust/crates/nix/src/sys/
Dsignal.rs684 SigHandler::SigAction(_) => return Err(Error::UnsupportedOperation), in signal()

12