Exemple #1
0
 def setup_method(self, meth):
     if getattr(meth, 'need_sparse_files', False):
         if sys.maxsize < 2**32 and not self.runappdirect:
             # this fails because it uses ll2ctypes to call the posix
             # functions like 'open' and 'lseek', whereas a real compiled
             # C program would macro-define them to their longlong versions
             py.test.skip("emulation of files can't use "
                          "larger-than-long offsets")
         need_sparse_files()
Exemple #2
0
 def setup_method(self, meth):
     if getattr(meth, 'need_sparse_files', False):
         if sys.maxsize < 2**32 and not self.runappdirect:
             # this fails because it uses ll2ctypes to call the posix
             # functions like 'open' and 'lseek', whereas a real compiled
             # C program would macro-define them to their longlong versions
             py.test.skip("emulation of files can't use "
                          "larger-than-long offsets")
         need_sparse_files()
Exemple #3
0
 def setup_method(self, meth):
     if getattr(meth, 'need_sparse_files', False):
         need_sparse_files()
Exemple #4
0
 def setup_method(self, meth):
     if getattr(meth, "need_sparse_files", False):
         need_sparse_files()
Exemple #5
0
 def setup_method(self, meth):
     if getattr(meth, 'need_sparse_files', False):
         from rpython.translator.c.test.test_extfunc import need_sparse_files
         need_sparse_files()
Exemple #6
0
 def setup_method(self, meth):
     if getattr(meth, 'need_sparse_files', False):
         from rpython.translator.c.test.test_extfunc import need_sparse_files
         need_sparse_files()