Home
last modified time | relevance | path

Searched refs:filecmp (Results 1 – 25 of 52) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_filecmp.py1 import filecmp
30 self.assertTrue(filecmp.cmp(self.name, self.name),
32 self.assertTrue(filecmp.cmp(self.name, self.name, shallow=False),
34 self.assertTrue(filecmp.cmp(self.name, self.name_same),
36 self.assertTrue(filecmp.cmp(self.name, self.name_same, shallow=False),
40 self.assertFalse(filecmp.cmp(self.name, self.name_diff),
42 self.assertFalse(filecmp.cmp(self.name, self.dir),
46 first_compare = filecmp.cmp(self.name, self.name_same, shallow=False)
47 second_compare = filecmp.cmp(self.name, self.name_diff, shallow=False)
48 filecmp.clear_cache()
[all …]
Dtest_keyword.py4 import filecmp
62 self.assertFalse(filecmp.cmp(KEYWORD_FILE, TEST_PY_FILE))
65 self.assertTrue(filecmp.cmp(KEYWORD_FILE, TEST_PY_FILE))
119 self.assertTrue(filecmp.cmp(TEST_PY_FILE, PY_FILE_WITHOUT_KEYWORDS))
/external/python/cpython2/Lib/test/
Dtest_filecmp.py2 import os, filecmp, shutil, tempfile
28 self.assertTrue(filecmp.cmp(self.name, self.name_same),
30 self.assertTrue(filecmp.cmp(self.name, self.name_same, shallow=False),
32 self.assertTrue(filecmp.cmp(self.name, self.name, shallow=False),
34 self.assertTrue(filecmp.cmp(self.name, self.name),
38 self.assertFalse(filecmp.cmp(self.name, self.name_diff),
40 self.assertFalse(filecmp.cmp(self.name, self.dir),
72 self.assertTrue(filecmp.cmpfiles(self.dir, self.dir, ['file']) ==
75 self.assertTrue(filecmp.cmpfiles(self.dir, self.dir_same, ['file']) ==
80 self.assertTrue(filecmp.cmpfiles(self.dir, self.dir, ['file'],
[all …]
/external/python/cpython2/Doc/library/
Dfilecmp.rst1 :mod:`filecmp` --- File and Directory Comparisons
4 .. module:: filecmp
8 **Source code:** :source:`Lib/filecmp.py`
12 The :mod:`filecmp` module defines functions to compare files and directories,
16 The :mod:`filecmp` module defines the following functions:
47 :func:`filecmp.cmp`.
56 >>> import filecmp
57 >>> filecmp.cmp('undoc.rst', 'undoc.rst') # doctest: +SKIP
59 >>> filecmp.cmp('undoc.rst', 'index.rst') # doctest: +SKIP
79 as described for :func:`filecmp.cmp`.
[all …]
Dfilesys.rst20 filecmp.rst
/external/python/cpython3/Doc/library/
Dfilecmp.rst1 :mod:`filecmp` --- File and Directory Comparisons
4 .. module:: filecmp
9 **Source code:** :source:`Lib/filecmp.py`
13 The :mod:`filecmp` module defines functions to compare files and directories,
17 The :mod:`filecmp` module defines the following functions:
49 :func:`filecmp.cmp`.
58 Clear the filecmp cache. This may be useful if a file is compared so quickly
74 :attr:`filecmp.DEFAULT_IGNORES`. *hide* is a list of names to hide, and
78 as described for :func:`filecmp.cmp`.
188 >>> from filecmp import dircmp
/external/skqp/infra/bots/
Dtest_utils.py12 import filecmp
59 test.assertTrue(filecmp.cmp(pathA, pathB, shallow=False))
73 _cmp('', filecmp.dircmp(a, b))
Dzip_utils_test.py12 import filecmp
/external/skia/infra/bots/
Dtest_utils.py12 import filecmp
59 test.assertTrue(filecmp.cmp(pathA, pathB, shallow=False))
73 _cmp('', filecmp.dircmp(a, b))
Dzip_utils_test.py12 import filecmp
/external/python/cpython3/Tools/freeze/
Dbkfile.py20 import filecmp
21 if filecmp.cmp(backup, file, shallow=False):
/external/puffin/scripts/
Dtest_corpus.py11 import filecmp
86 if not filecmp.cmp(src, tgt_file.name):
132 if not filecmp.cmp(tgt, new_tgt.name):
/external/autotest/server/site_tests/brillo_ADBFileTransfer/
Dbrillo_ADBFileTransfer.py5 import filecmp
48 if not filecmp.cmp(self.temp_file.name,
/external/lz4/tests/
Dtest-lz4-versions.py12 import filecmp
121 if filecmp.cmp(lz4, lz4t):
146 if not filecmp.cmp(dec, test_dat):
/external/autotest/server/site_tests/brillo_ADBDirectoryTransfer/
Dbrillo_ADBDirectoryTransfer.py5 import filecmp
62 if not filecmp.cmp(original, returned, shallow=False):
/external/python/cpython2/Tools/freeze/
Dbkfile.py38 import filecmp
39 if filecmp.cmp(self.__backup, self.__filename, shallow = 0):
/external/clang/utils/check_cfc/
Dobj_diff.py7 import filecmp
90 return filecmp.cmp(objfilea, objfileb)
/external/owasp/sanitizer/tools/
Dupdate_tree_in_svn.py8 import filecmp
77 if not filecmp.cmp(src, dst, shallow=0): copy(src, dst)
/external/brotli/python/tests/
D_test_utils.py2 import filecmp
111 filecmp.cmp(first, second, shallow=False),
/external/tensorflow/tensorflow/python/lib/io/
Dfile_io_test.py504 self.assertFalse(file_io.filecmp(file1, file2))
505 self.assertTrue(file_io.filecmp(file2, file3))
517 self.assertFalse(file_io.filecmp(file1, file2))
518 self.assertTrue(file_io.filecmp(file2, file3))
533 self.assertFalse(file_io.filecmp(file1, file2))
534 self.assertFalse(file_io.filecmp(file1, file4))
535 self.assertTrue(file_io.filecmp(file2, file3))
/external/swiftshader/third_party/llvm-7.0/llvm/utils/
Dabtest.py40 import filecmp
155 if filecmp.cmp(goodfile, badfile):
/external/llvm/utils/abtest/
Dabtest.py45 import filecmp
157 if filecmp.cmp(goodfile, badfile):
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest_routines.h4 extern int filecmp(char *f1, char *f2);
/external/python/cpython3/Lib/test/libregrtest/
Drefleak.py220 filecmp = sys.modules['filecmp']
224 filecmp._cache.clear()
/external/avb/test/
Dat_auth_unlock_unittest.py20 import filecmp
235 self.assertTrue(filecmp.cmp(out_cred, DATA_FILE_UNLOCK_CREDENTIAL))
313 if not filecmp.cmp(handler.staged_file, DATA_FILE_UNLOCK_CREDENTIAL):

123