diff --git a/tests/stdlib/tos.nim b/tests/stdlib/tos.nim index 6651a25db766a..3f62a098f7eac 100644 --- a/tests/stdlib/tos.nim +++ b/tests/stdlib/tos.nim @@ -549,12 +549,12 @@ block getTempDir: if existsEnv("TMPDIR"): let origTmpDir = getEnv("TMPDIR") putEnv("TMPDIR", "/mytmp") - doAssert getTempDir() == "/mytmp/" + doAssert getTempDir() == "/mytmp" delEnv("TMPDIR") - doAssert getTempDir() == "/tmp/" + doAssert getTempDir() == "/tmp" putEnv("TMPDIR", origTmpDir) else: - doAssert getTempDir() == "/tmp/" + doAssert getTempDir() == "/tmp" block osenv: block delEnv: