summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r--Lib/test/test_tarfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index 57fc062..f64964d 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -243,7 +243,7 @@ class CommonReadTest(ReadTest):
if sys.platform == 'win32' and '|' in self.mode:
# Issue #20384: On Windows os.open() error message doesn't
# contain file name.
- text = ''
+ test = ''
with self.assertRaisesRegex(FileNotFoundError, test):
tarfile.open("xxx", self.mode)