Skip to content

Conftest

FPUModeChangeWarning

Module Scipy.​Conftest.​FPUModeChangeWarning wraps Python class scipy.conftest.FPUModeChangeWarning.

type t

with_traceback

method with_traceback
val with_traceback :
  tb:Py.Object.t ->
  [> tag] Obj.t ->
  Py.Object.t

Exception.with_traceback(tb) -- set self.traceback to tb and return self.

to_string

method to_string
val to_string: t -> string

Print the object to a human-readable representation.

show

method show
val show: t -> string

Print the object to a human-readable representation.

pp

method pp
val pp: Format.formatter -> t -> unit

Pretty-print the object to a formatter.

LooseVersion

Module Scipy.​Conftest.​LooseVersion wraps Python class scipy.conftest.LooseVersion.

type t

create

constructor and attributes create
val create :
  ?vstring:Py.Object.t ->
  unit ->
  t

Version numbering for anarchists and software realists. Implements the standard interface for version number classes as described above. A version number consists of a series of numbers, separated by either periods or strings of letters. When comparing version numbers, the numeric components will be compared numerically, and the alphabetic components lexically. The following are all valid version numbers, in no particular order:

1.5.1
1.5.2b2
161
3.10a
8.02
3.4j
1996.07.12
3.2.pl0
3.1.1.6
2g6
11g
0.960923
2.2beta29
1.13++
5.5.kw
2.0b1pl0

In fact, there is no such thing as an invalid version number under this scheme; the rules for comparison are simple and predictable, but may not always give the results you want (for some definition of 'want').

parse

method parse
val parse :
  vstring:Py.Object.t ->
  [> tag] Obj.t ->
  Py.Object.t

to_string

method to_string
val to_string: t -> string

Print the object to a human-readable representation.

show

method show
val show: t -> string

Print the object to a human-readable representation.

pp

method pp
val pp: Format.formatter -> t -> unit

Pretty-print the object to a formatter.

check_fpu_mode

function check_fpu_mode
val check_fpu_mode :
  Py.Object.t ->
  Py.Object.t

Check FPU mode was not changed during the test.

pytest_configure

function pytest_configure
val pytest_configure :
  Py.Object.t ->
  Py.Object.t

pytest_runtest_setup

function pytest_runtest_setup
val pytest_runtest_setup :
  Py.Object.t ->
  Py.Object.t