]> git.phdru.name Git - ppu.git/commitdiff
Tests: Remove unused tmp_dir
authorOleg Broytman <phd@phdru.name>
Sun, 20 Aug 2017 19:57:22 +0000 (22:57 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 20 Aug 2017 19:57:22 +0000 (22:57 +0300)
tests/test_cmp.py
tests/test_remove_old_files.py
tests/test_rm.py
tests/test_which.py

index b70183709577aae7aeb5eface0d34b59eb6b50d4..24dfd5fc8665f91c5feb424b6a36e15be260d4a7 100755 (executable)
@@ -6,8 +6,6 @@ import sys
 from ppu_tu import setup, teardown, find_in_path  # noqa
 
 
-tmp_dir = None
-
 test_prog_path = find_in_path('cmp.py')
 if not test_prog_path:
     sys.exit("Cannot find cmp.py in %s" % os.environ["PATH"])
index 93f8669eebe0dd7bbbb35169ae40cc53fc6ea069..80c91e4e05e9fb375249a16cdbf84ef06264beb2 100755 (executable)
@@ -8,14 +8,14 @@ from ppu_tu import setup, teardown, find_in_path  # noqa
 from ppu_tu import create_files, assert_files_exist, assert_files_not_exist
 
 
-tmp_dir = None
-old_time = time() - 1000 * 24 * 3600  # 1000 days ago
-
 test_prog_path = find_in_path('remove-old-files.py')
 if not test_prog_path:
     sys.exit("Cannot find remove-old-files.py in %s" % os.environ["PATH"])
 
 
+old_time = time() - 1000 * 24 * 3600  # 1000 days ago
+
+
 def test_remove_old_files():
     create_files(['test1', 'test2'])
     assert_files_exist(['test1', 'test2'])
index 4e4cd76d314412f7fc2c1215f3832965aa0a73f4..f7550da394be47acfbc6cee5f61e6e335ab83c99 100755 (executable)
@@ -7,8 +7,6 @@ from ppu_tu import setup, teardown, find_in_path  # noqa
 from ppu_tu import create_files, assert_files_exist, assert_files_not_exist
 
 
-tmp_dir = None
-
 test_prog_path = find_in_path('rm.py')
 if not test_prog_path:
     sys.exit("Cannot find rm.py in %s" % os.environ["PATH"])
index 5de5a64662e9c0fac685352d452aea235286cbc9..b65a832eb57c1eb380789435a456e8550163a417 100755 (executable)
@@ -6,8 +6,6 @@ import sys
 from ppu_tu import setup, teardown, find_in_path  # noqa
 
 
-tmp_dir = None
-
 test_prog_path = find_in_path('which.py')
 if not test_prog_path:
     sys.exit("Cannot find which.py in %s" % os.environ["PATH"])