Skip to content

Commit

Permalink
remove tmp file by hand
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoTian committed Aug 18, 2016
1 parent f922efe commit 7fcee28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from unittest import TestCase
import tempfile
import pytest
from conda.install import rm_rf

class ExportIntegrationTests(TestCase):

Expand All @@ -23,8 +24,8 @@ def test_basic(self):
run_command(Commands.CREATE, prefix2 , "--file " + env_txt.name)

assert_package_is_installed(prefix2, "python")

output2, error= run_command(Commands.LIST, prefix2, "-e")
rm_rf(env_txt.name)
output2, error = run_command(Commands.LIST, prefix2, "-e")
self.assertEqual(output, output2)

def test_multi_channel_explicit(self):
Expand All @@ -51,6 +52,6 @@ def test_multi_channel_explicit(self):

assert_package_is_installed(prefix2, "python")
assert_package_is_installed(prefix2, "six")

rm_rf(env_txt.name)
output2, _ = run_command(Commands.LIST, prefix2, "--explicit")
self.assertEqual(output, output2)

0 comments on commit 7fcee28

Please sign in to comment.