Merge branch 'move-fspath' of https://github.com/palaviv/RustPython into palaviv-move-fspath

This commit is contained in:
coolreader18
2019-05-19 14:03:20 -05:00
3 changed files with 20 additions and 32 deletions

View File

@@ -49,6 +49,10 @@ else:
assert os.altsep == None
assert os.pathsep == ":"
assert os.fspath("Testing") == "Testing"
assert os.fspath(b"Testing") == b"Testing"
assert_raises(TypeError, lambda: os.fspath([1,2,3]))
class TestWithTempDir():
def __enter__(self):
if os.name == "nt":