Skip to content
Snippets Groups Projects
  • Jean-Paul Calderone's avatar
    39985b16
    It's already a text-mode FilePath, right? · 39985b16
    Jean-Paul Calderone authored
    TempDir.join(unicode) returns unicode
    TempDir.join(bytes) raises an Exception
    FilePath(unicode) produces a text-mode FilePath
    StorageServer.__init__ raises an exception if passed bytes
    
    So we can just rely on self.tempdir.path being the correct type already and
    even if it weren't StorageServer would immediately tell us.
    39985b16
    History
    It's already a text-mode FilePath, right?
    Jean-Paul Calderone authored
    TempDir.join(unicode) returns unicode
    TempDir.join(bytes) raises an Exception
    FilePath(unicode) produces a text-mode FilePath
    StorageServer.__init__ raises an exception if passed bytes
    
    So we can just rely on self.tempdir.path being the correct type already and
    even if it weren't StorageServer would immediately tell us.
fixtures.py 4.03 KiB