Skip to content

Commit f31c5ba

Browse files
committed
[nginxctl/tests/test_parser.py] Give up and add explicit __name__ fallback
1 parent 602ce96 commit f31c5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginxctl/tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def setUp(self):
3939
self.nginx_conf_fname, catch_errors=False, comments=False
4040
)
4141

42-
self.temp_dir = mkdtemp(app_name, self.__class__.__name__)
42+
self.temp_dir = mkdtemp(app_name, getattr(self.__class__, '__name__', 'TestParser'))
4343
self.tmp_nginx_conf_fname = path.join(self.temp_dir, "nginx.conf")
4444

4545
def tearDown(self):

0 commit comments

Comments
 (0)