Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 257 for fchdir (0.13 sec)

  1. tests/test_tutorial/test_sql_databases/test_sql_databases.py

    from ...utils import needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

    from ...utils import needs_py310, needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/dir.go

    		upload:   filepath.Join(dir, "upload"),
    		debug:    filepath.Join(dir, "debug"),
    		modefile: filepath.Join(dir, "mode"),
    	}
    }
    
    func init() {
    	cfgDir, err := os.UserConfigDir()
    	if err != nil {
    		return
    	}
    	Default = NewDir(filepath.Join(cfgDir, "go", "telemetry"))
    }
    
    func (d Dir) Dir() string {
    	return d.dir
    }
    
    func (d Dir) LocalDir() string {
    	return d.local
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. pkg/bootstrap/config_test.go

    	t.Setenv(IstioMetaPrefix+"OWNER", inputOwner)
    	t.Setenv(IstioMetaPrefix+"WORKLOAD_NAME", inputWorkloadName)
    
    	dir, _ := os.Getwd()
    	defer os.Chdir(dir)
    	// prepare a pod label file
    	tempDir := t.TempDir()
    	os.Chdir(tempDir)
    	os.MkdirAll("./etc/istio/pod/", os.ModePerm)
    	os.WriteFile(constants.PodInfoLabelsPath, []byte(`istio-locality="region.zone.subzone"`), 0o600)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. cmd/auth-handler_test.go

    func TestIsReqAuthenticated(t *testing.T) {
    	ctx, cancel := context.WithCancel(GlobalContext)
    	defer cancel()
    
    	objLayer, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("unable initialize config file, %s", err)
    	}
    
    	initAllSubsystems(ctx)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. cmd/config-current_test.go

    	"github.com/minio/minio/internal/config"
    )
    
    func TestServerConfig(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	objLayer, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    
    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("Init Test config failed")
    	}
    
    	if globalSite.Region() != globalMinioDefaultRegion {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. src/internal/xcoff/ar.go

    	}
    
    	var fhdr bigarFileHeader
    	if _, err := sr.Seek(0, io.SeekStart); err != nil {
    		return nil, err
    	}
    	if err := binary.Read(sr, binary.BigEndian, &fhdr); err != nil {
    		return nil, err
    	}
    
    	off, err := parseDecimalBytes(fhdr.Flfstmoff[:])
    	if err != nil {
    		return nil, fmt.Errorf("error parsing offset of first member in archive header(%q); %v", fhdr, err)
    	}
    
    	if off == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/os/exec/lp_windows_test.go

    		files:     []string{`p1\a.bat`, `p2\a.bat`},
    		PATH:      []string{`.\p1`, `p1`, `p2`},
    		searchFor: `a`,
    		want:      `p1\a.bat`,
    	},
    }
    
    func TestLookPathWindows(t *testing.T) {
    	// Not parallel: uses Chdir and Setenv.
    
    	// We are using the "printpath" command mode to test exec.Command here,
    	// so we won't be calling helperCommand to resolve it.
    	// That may cause it to appear to be unused.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. internal/kms/config.go

    				cert := certificate.Get()
    				return &cert, nil
    			}
    		}
    
    		var caDir string
    		if opts != nil {
    			caDir = opts.CADir
    		}
    		conf.RootCAs, err = certs.GetRootCAs(env.Get(EnvKESServerCA, caDir))
    		if err != nil {
    			return nil, err
    		}
    
    		client := kes.NewClientWithConfig("", conf)
    		client.Endpoints = endpoints
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 14:31:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. src/os/file.go

    		return err
    	}
    	return Chmod(name, fi.Mode()|ModeSticky)
    }
    
    // Chdir changes the current working directory to the named directory.
    // If there is an error, it will be of type *PathError.
    func Chdir(dir string) error {
    	if e := syscall.Chdir(dir); e != nil {
    		testlog.Open(dir) // observe likely non-existent directory
    		return &PathError{Op: "chdir", Path: dir, Err: e}
    	}
    	if runtime.GOOS == "windows" {
    		getwdCache.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top