We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b90ff4 commit eeae6efCopy full SHA for eeae6ef
test/mri/lib/minitest/unit.rb
@@ -1367,6 +1367,10 @@ def self.inherited klass # :nodoc:
1367
if ENV["EXCLUDES"]
1368
begin
1369
exclude_src = File.read File.join(ENV["EXCLUDES"], klass.inspect.gsub("::", "/") + ".rb")
1370
+ rescue Errno::ENOENT
1371
+ # no excludes for this class
1372
+ else
1373
+ # excludes available, proceed
1374
excludes = {}
1375
klass.send :instance_variable_set, :@excludes, excludes
1376
@@ -1377,8 +1381,6 @@ def exclude(name, reason)
1377
1381
end
1378
1382
1379
1383
klass.class_eval exclude_src
1380
- rescue Errno::ENOENT
- # no excludes for this class
1384
1385
1386
0 commit comments