From 539681fffd96082ca3b5d18643d4f08f65c47170 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 5 Jul 2014 06:14:29 +0100 Subject: tests: Rename test scripts, changing - to _ for consistency. From now on, all new tests must use underscore. Addresses issue #727. --- tests/io/file-with.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 tests/io/file-with.py (limited to 'tests/io/file-with.py') diff --git a/tests/io/file-with.py b/tests/io/file-with.py deleted file mode 100644 index ee1e70242..000000000 --- a/tests/io/file-with.py +++ /dev/null @@ -1,21 +0,0 @@ -f = open("io/data/file1") - -with f as f2: - print(f2.read()) - -# File should be closed -try: - f.read() -except: - # Note: CPython and us throw different exception trying to read from - # close file. - print("can't read file after with") - - -# Regression test: test that exception in with initialization properly -# thrown and doesn't crash. -try: - with open('__non_existent', 'r'): - pass -except OSError: - print("OSError") -- cgit v1.2.3