aboutsummaryrefslogtreecommitdiffstats
path: root/tests/archive_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/archive_tests.py')
-rw-r--r--tests/archive_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/archive_tests.py b/tests/archive_tests.py
index dac02a04..febc96b4 100644
--- a/tests/archive_tests.py
+++ b/tests/archive_tests.py
@@ -39,6 +39,12 @@ class TarFileArchiveTest(unittest.TestCase):
self.check_for_file('test/tests/ziptest')
+ def test_add_node_dev_null(self):
+ st = os.lstat('/dev/null')
+ dev_maj = os.major(st.st_rdev)
+ dev_min = os.minor(st.st_rdev)
+ self.tf.add_node('/dev/null', st.st_mode, os.makedev(dev_maj, dev_min))
+
# when the string comes from tail() output
def test_add_string_from_file(self):
self.copy_strings = []