We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e06fc9 commit e6eb077Copy full SHA for e6eb077
shapefile.py
@@ -1190,9 +1190,14 @@ def __fieldNorm(self, fieldName):
1190
def test(verbosity):
1191
import doctest
1192
doctest.NORMALIZE_WHITESPACE = 1
1193
+ existing_files = set(os.listdir('.'))
1194
if verbosity == 0:
1195
print('Running doctests...')
1196
failure_count, test_count = doctest.testfile("README.txt", verbose=verbosity)
1197
+ temp_files = set(os.listdir('.')) - existing_files
1198
+ for filename in temp_files:
1199
+ if not os.path.isdir(filename):
1200
+ os.unlink(filename)
1201
if verbosity == 0 and failure_count == 0:
1202
print('All test passed successfully')
1203
return failure_count
0 commit comments