Ditch some dead code in test_unicode_file.

Closes issue #10294. Thanks Stefan Behnel for the find.
diff --git a/Misc/NEWS b/Misc/NEWS
index 9e6c113..ae95b13 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -243,6 +243,8 @@
 Tests
 -----
 
+- Issue #10294: Remove dead code form test_unicode_file.
+
 - Issue #10123: Don't use non-ascii filenames in test_doctest tests. Add a
   new test specific to unicode (non-ascii name and filename).